ROCKPro64-Server/system/services/general/libvirtd/default.nix

23 lines
423 B
Nix
Raw Normal View History

{ pkgs, ... }:
2025-02-28 12:21:09 -05:00
{
virtualisation.libvirtd = {
enable = false;
onBoot = "ignore";
onShutdown = "shutdown";
qemu = {
ovmf = {
enable = true;
packages = with pkgs; [ OVMFFull.fd ];
2025-02-28 12:21:09 -05:00
};
vhostUserPackages = with pkgs; [ virtiofsd ];
swtpm.enable = true;
2025-02-28 12:21:09 -05:00
};
};
# Needed to make NAT work
networking.firewall.trustedInterfaces = [
"virbr0"
"virbr1"
];
2025-02-28 12:21:09 -05:00
}