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

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