summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/default.nix2
-rw-r--r--modules/virt.nix2
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/default.nix b/modules/default.nix
index f18f380..3c1dc71 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -37,7 +37,7 @@
time.timeZone = "Europe/Amsterdam"; # Set timezone
sops.defaultSopsFile = ./secrets/secrets.yaml;
- sops.age.sshKeyPaths = [ "/etc/ssh_host_ed25519_key" ];
+ sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
sops.age.generateKey = true;
diff --git a/modules/virt.nix b/modules/virt.nix
index 53bd70a..01547b4 100644
--- a/modules/virt.nix
+++ b/modules/virt.nix
@@ -11,6 +11,7 @@ in
options.addons.virtualisation = {
host = lib.mkEnableOption "Allow to host vm's and containers";
guest = lib.mkEnableOption "Enable guest agents";
+ isTestVM = lib.mkEnableOption "Enabled if the system is a test VM";
};
config = lib.mkMerge ([
@@ -34,6 +35,7 @@ in
})
(lib.mkIf cfg.guest {
services.spice-vdagentd.enable = true;
+ services.qemuGuest.enable = true;
})
]);
}