add packages to libvirtd

This commit is contained in:
Artemis Tosini 2024-02-25 00:06:18 +00:00
parent 479eac2217
commit f38be57cac
Signed by: artemist
SSH key fingerprint: SHA256:EsuWCwx6fjxxExxf65rX+ocQJJAdw4R1KarpFue6Uwc

View file

@ -8,9 +8,15 @@
};
libvirtd = {
enable = true;
qemu.ovmf.enable = true;
qemu.swtpm.enable = true;
qemu.runAsRoot = false;
qemu = {
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull.fd ]
++ lib.optional (pkgs.system == "x86_64-linux")
pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd;
swtpm.enable = true;
vhostUserPackages = [ pkgs.virtiofsd ];
runAsRoot = false;
};
onBoot = "ignore";
onShutdown = "shutdown";
};