From f38be57cac05cd6149075e528a2d83292d1ad7c3 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 25 Feb 2024 00:06:18 +0000 Subject: [PATCH] add packages to libvirtd --- sets/virtualization.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sets/virtualization.nix b/sets/virtualization.nix index f250657..513fddf 100644 --- a/sets/virtualization.nix +++ b/sets/virtualization.nix @@ -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"; };