This commit is contained in:
2025-01-24 16:18:14 -05:00
parent e52ddc3314
commit 41d3167311
13 changed files with 138 additions and 75 deletions

14
etcnixos/vm.nix Normal file
View File

@@ -0,0 +1,14 @@
{ pkgs, username, ... }:
{
programs.virt-manager.enable = true;
users.groups.libvirtd.members = [ username ];
virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
users.users."${username}".extraGroups = [ "libvirtd" ];
}