things
This commit is contained in:
14
etcnixos/vm.nix
Normal file
14
etcnixos/vm.nix
Normal 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" ];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user