aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/machines/vm-aarch64/default.nix7
-rw-r--r--nix/machines/vm-hetzner/default.nix2
-rw-r--r--nix/machines/vm-shared.nix4
-rw-r--r--nix/machines/vm-synology/default.nix4
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";
}