diff options
author | Franck Cuny <franck@fcuny.net> | 2024-12-09 15:25:25 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-12-09 15:25:25 -0800 |
commit | e4e769a7adaaa287cba1de8f04f04367c8c16d84 (patch) | |
tree | 30b202919328f3a93a18a7f6721b14017689a934 /nix/machines | |
parent | fix configuration for work MBP (diff) | |
download | world-e4e769a7adaaa287cba1de8f04f04367c8c16d84.tar.gz |
fix misconfiguration of the bootloader
Diffstat (limited to 'nix/machines')
-rw-r--r-- | nix/machines/vm-aarch64/default.nix | 7 | ||||
-rw-r--r-- | nix/machines/vm-hetzner/default.nix | 2 | ||||
-rw-r--r-- | nix/machines/vm-shared.nix | 4 | ||||
-rw-r--r-- | nix/machines/vm-synology/default.nix | 4 |
4 files changed, 12 insertions, 5 deletions
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"; } |