From e4e769a7adaaa287cba1de8f04f04367c8c16d84 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 9 Dec 2024 15:25:25 -0800 Subject: fix misconfiguration of the bootloader --- nix/machines/vm-aarch64/default.nix | 7 +++++++ nix/machines/vm-hetzner/default.nix | 2 +- nix/machines/vm-shared.nix | 4 ---- nix/machines/vm-synology/default.nix | 4 ++++ 4 files changed, 12 insertions(+), 5 deletions(-) (limited to 'nix') diff --git a/nix/machines/vm-aarch64/default.nix b/nix/machines/vm-aarch64/default.nix index 302a80c..b1444cc 100644 --- a/nix/machines/vm-aarch64/default.nix +++ b/nix/machines/vm-aarch64/default.nix @@ -1,5 +1,12 @@ { ... }: { imports = [ ./hardware.nix ../vm-shared.nix ]; + # Use the systemd-boot EFI boot loader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + networking.hostName = "vm-aarch64"; + + # enable the guest agent + services.qemuGuest.enable = true; } diff --git a/nix/machines/vm-hetzner/default.nix b/nix/machines/vm-hetzner/default.nix index a268779..889b00d 100644 --- a/nix/machines/vm-hetzner/default.nix +++ b/nix/machines/vm-hetzner/default.nix @@ -1,5 +1,5 @@ { pkgs, lib, ... }: { - imports = [ ./hardware/vm-hetzner.nix ./vm-shared.nix ]; + imports = [ ./hardware.nix ../vm-shared.nix ]; boot.tmp.cleanOnBoot = true; zramSwap.enable = true; diff --git a/nix/machines/vm-shared.nix b/nix/machines/vm-shared.nix index 0a1b4b2..01dbaac 100644 --- a/nix/machines/vm-shared.nix +++ b/nix/machines/vm-shared.nix @@ -9,10 +9,6 @@ }; }; - # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - time.timeZone = "America/Los_Angeles"; # Don't require password for sudo diff --git a/nix/machines/vm-synology/default.nix b/nix/machines/vm-synology/default.nix index 928ab86..8af114b 100644 --- a/nix/machines/vm-synology/default.nix +++ b/nix/machines/vm-synology/default.nix @@ -1,5 +1,9 @@ { ... }: { imports = [ ./hardware.nix ../vm-shared.nix ]; + # Use the systemd-boot EFI boot loader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + networking.hostName = "vm-synology"; } -- cgit 1.4.1