diff --git a/nix/system/default.nix b/nix/system/default.nix index 0ed8ccb..2338fe4 100644 --- a/nix/system/default.nix +++ b/nix/system/default.nix @@ -88,7 +88,7 @@ users.users.${config.user} = { isNormalUser = true; description = config.fullName; - extraGroups = [ "networkmanager" "wheel" "sys" "video" "audio" "docker" ]; + extraGroups = [ "networkmanager" "wheel" "sys" "video" "audio" "docker" "libvirtd" ]; home = config.homePath; shell = pkgs.zsh; }; @@ -138,4 +138,10 @@ ]; }; }; + + # vms + programs.virt-manager.enable = true; + users.groups.libvirtd.members = [config.user]; + virtualisation.libvirtd.enable = true; + virtualisation.spiceUSBRedirection.enable = true; }