nix: libvirt

This commit is contained in:
js0ny 2025-10-13 00:59:21 +01:00
parent 55931c0167
commit efed8ac3de
2 changed files with 12 additions and 7 deletions

View file

@ -19,5 +19,3 @@
}; };
}; };
} }

View file

@ -1,7 +1,10 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
virt-manager virt-manager
dnsmasq
virtiofsd
]; ];
programs.virt-manager.enable = true;
virtualisation.libvirtd = { virtualisation.libvirtd = {
enable = true; enable = true;
qemu = { qemu = {
@ -19,4 +22,8 @@
}; };
}; };
}; };
users.users.js0ny = {
extraGroups = ["libvirtd"];
};
networking.firewall.trustedInterfaces = ["virbr0"];
} }