From 07170ee242745fa9577c10056d23f8c0515a30dc Mon Sep 17 00:00:00 2001 From: chayleaf Date: Fri, 12 May 2023 18:12:33 +0700 Subject: [PATCH] fix virtiofs this also requred a change in vm config for some reason, see https://bbs.archlinux.org/viewtopic.php?id=285366 the still has to be there because the path="..." attribute is needed, but all other attrs and the inner content should be removed to fix it --- system/modules/vfio.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/system/modules/vfio.nix b/system/modules/vfio.nix index b347887..2a211e5 100644 --- a/system/modules/vfio.nix +++ b/system/modules/vfio.nix @@ -1,4 +1,8 @@ -{ options, config, lib, pkgs, ... }: +{ config +, lib +, pkgs +, ... }: + let cfg = config.vfio; in { @@ -166,6 +170,7 @@ in { onBoot = "ignore"; onShutdown = "shutdown"; qemu = { + package = pkgs.qemu_kvm; ovmf.enable = true; # Full is needed for TPM and secure boot emulation ovmf.packages = [ pkgs.OVMFFull.fd ]; @@ -186,5 +191,8 @@ in { }; virtualisation.spiceUSBRedirection.enable = true; users.groups.libvirtd.members = [ "root" ] ++ cfg.libvirtdGroup; + environment.systemPackages = with pkgs; [ + virtiofsd + ]; }; }