23 lines
461 B
Nix
23 lines
461 B
Nix
{
|
|
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" ];
|
|
};
|
|
|
|
}
|