diff --git a/systems/artemision/configuration.nix b/systems/artemision/configuration.nix index 84a7b22..533dec6 100644 --- a/systems/artemision/configuration.nix +++ b/systems/artemision/configuration.nix @@ -16,6 +16,7 @@ ./fingerprint.nix ./steam.nix ./graphics.nix + ./libvirt.nix ]; time.timeZone = "America/New_York"; diff --git a/systems/artemision/libvirt.nix b/systems/artemision/libvirt.nix new file mode 100644 index 0000000..70ea623 --- /dev/null +++ b/systems/artemision/libvirt.nix @@ -0,0 +1,30 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + virtualisation.libvirtd = { + enable = true; + qemu = { + package = pkgs.qemu_kvm; + runAsRoot = true; + swtpm.enable = true; + ovmf = { + enable = true; + packages = [ + (pkgs.OVMF.override { + secureBoot = true; + tpmSupport = true; + }).fd + ]; + }; + }; + }; + users.users.alice = { + extraGroups = [ "libvirtd" ]; + }; + +}