add libvirt and virt manager

This commit is contained in:
Jérémie SALVI
2025-10-29 21:27:18 +01:00
parent 7fa9f95ce4
commit 9c0bf5fabf
4 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
{
pkgs,
username,
...
}:
{
virtualisation = {
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_full;
runAsRoot = true;
swtpm.enable = true;
};
};
};
users.users.${username} = {
extraGroups = [ "libvirtd" ];
};
}