diff --git a/config/users.nix b/config/users.nix index 05562b2..f364002 100644 --- a/config/users.nix +++ b/config/users.nix @@ -46,6 +46,7 @@ let "cups" "lp" ]) + ++ (optional config.programs.virt-manager.enable "libvirtd") ++ (optional (withDocker && !withPodman) "docker") ++ (optional withPodman "podman"); shell = "${pkgs.zsh}/bin/zsh"; diff --git a/services/virt-manager.nix b/services/virt-manager.nix new file mode 100644 index 0000000..6e97a1b --- /dev/null +++ b/services/virt-manager.nix @@ -0,0 +1,17 @@ +{ + config, + lib, + ... +}: + +with lib; +mkIf (elem "virt-manager" config.machine.services) { + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; + dconf.settings = { + "org/virt-manager/virt-manager/connections" = { + autoconnect = [ "qemu:///system" ]; + uris = [ "qemu:///system" ]; + }; + }; +}