niksos/options/common/libvirt.nix

24 lines
461 B
Nix
Raw Normal View History

2024-02-29 01:41:04 +01:00
{
config,
...
}: {
virtualisation = {
libvirtd = {
enable = true;
onBoot = "ignore";
qemu = {
ovmf.enable = true;
runAsRoot = false;
swtpm.enable = true;
};
};
};
networking.firewall.trustedInterfaces = [ "virbr0" ];
users.users.${config.myOptions.other.system.username} = {
extraGroups = [ "libvirtd" ];
};
}