summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/prefect.nix1
-rw-r--r--system/settings/services/virtualisation.nix19
2 files changed, 20 insertions, 0 deletions
diff --git a/system/prefect.nix b/system/prefect.nix
index eeac53a6..b007bf12 100644
--- a/system/prefect.nix
+++ b/system/prefect.nix
@@ -25,6 +25,7 @@
     ./settings/hardware/trezor.nix
     ./settings/services/samba.nix
     ./settings/services/syncthing.nix
+    ./settings/services/virtualisation.nix
     ./settings/services/zeroconf.nix
     ./settings/user-interface.nix
     ./settings/programs/base.nix
diff --git a/system/settings/services/virtualisation.nix b/system/settings/services/virtualisation.nix
new file mode 100644
index 00000000..828c70eb
--- /dev/null
+++ b/system/settings/services/virtualisation.nix
@@ -0,0 +1,19 @@
+{ config, pkgs, ... }:
+
+{
+  virtualisation.libvirtd = {
+    enable = true;
+    onBoot = "ignore";
+    onShutdown = "shutdown";
+    qemu = {
+      package = pkgs.qemu_kvm;
+      ovmf.enable = true;
+      runAsRoot = false;
+    };
+  };
+
+  environment.systemPackages = with pkgs; [
+    virtmanager
+    OVMF
+  ];
+}