diff --git a/modules/server/virtualisation.nix b/modules/server/virtualisation.nix index e69de29..2598a3b 100644 --- a/modules/server/virtualisation.nix +++ b/modules/server/virtualisation.nix @@ -0,0 +1,16 @@ +{ config, lib, ... }: +{ + virtualisation = { + docker.enable = true; + spiceUSBRedirection.enable = config.my.virtualisation.enable; + libvirtd = lib.mkIf config.my.virtualisation.enable { + enable = true; + qemu = { + swtpm.enable = true; + runAsRoot = false; + }; + onShutdown = "shutdown"; + nss.enableGuest = true; + }; + }; +} \ No newline at end of file