aboutsummaryrefslogtreecommitdiff
path: root/hosts/wonderland/virt.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/wonderland/virt.nix')
-rw-r--r--hosts/wonderland/virt.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/wonderland/virt.nix b/hosts/wonderland/virt.nix
new file mode 100644
index 0000000..48a416d
--- /dev/null
+++ b/hosts/wonderland/virt.nix
@@ -0,0 +1,18 @@
+{ pkgs, ... }: {
+ users.users.alice.extraGroups = [ "libvirtd" ];
+ home-manager.users.alice.dconf.settings = {
+ "org/virt-manager/virt-manager/connections" = {
+ autoconnect = [ "qemu:///system" ];
+ uris = [ "qemu:///system" ];
+ };
+ };
+
+ programs.virt-manager.enable = true;
+ virtualisation.libvirtd = {
+ enable = true;
+ qemu = {
+ package = pkgs.qemu_kvm;
+ swtpm.enable = true;
+ };
+ };
+}