fix virtiofs

this also requred a change in vm config for some reason, see
https://bbs.archlinux.org/viewtopic.php?id=285366
the <binary/> 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
This commit is contained in:
chayleaf 2023-05-12 18:12:33 +07:00
parent d5f9e87bc9
commit 07170ee242

View file

@ -1,4 +1,8 @@
{ options, config, lib, pkgs, ... }: { config
, lib
, pkgs
, ... }:
let let
cfg = config.vfio; cfg = config.vfio;
in { in {
@ -166,6 +170,7 @@ in {
onBoot = "ignore"; onBoot = "ignore";
onShutdown = "shutdown"; onShutdown = "shutdown";
qemu = { qemu = {
package = pkgs.qemu_kvm;
ovmf.enable = true; ovmf.enable = true;
# Full is needed for TPM and secure boot emulation # Full is needed for TPM and secure boot emulation
ovmf.packages = [ pkgs.OVMFFull.fd ]; ovmf.packages = [ pkgs.OVMFFull.fd ];
@ -186,5 +191,8 @@ in {
}; };
virtualisation.spiceUSBRedirection.enable = true; virtualisation.spiceUSBRedirection.enable = true;
users.groups.libvirtd.members = [ "root" ] ++ cfg.libvirtdGroup; users.groups.libvirtd.members = [ "root" ] ++ cfg.libvirtdGroup;
environment.systemPackages = with pkgs; [
virtiofsd
];
}; };
} }