diff --git a/modules/desktop/virtd.nix b/modules/desktop/virtd.nix index d90355b..927e429 100644 --- a/modules/desktop/virtd.nix +++ b/modules/desktop/virtd.nix @@ -2,9 +2,11 @@ # https://nixos.wiki/wiki/Virt-manager virtualisation.libvirtd.enable = true; - programs.dconf.enable = true; # virt-manager requires dconf to remember settings environment.systemPackages = with pkgs; [ virt-manager ]; + # Virt-manager requires dconf to remember settings + programs.dconf.enable = true; + # Make virt-manager use QEMU/KVM by default home-manager.users.caspervk = { dconf.settings = { @@ -15,6 +17,9 @@ }; }; + # Allow our user to use libvird + users.extraGroups.libvirtd.members = [ "caspervk" ]; + # Persist libvirt data environment.persistence."/nix/persist" = { directories = [