same but different vfio setup

This commit is contained in:
Gerg-L 2024-02-16 20:06:01 -05:00
parent 630268b08d
commit 23e2e2b80d
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -139,10 +139,9 @@ in
fi fi
''; '';
virtualisation.libvirtd.hooks.qemu = {
systemd.tmpfiles.rules = "AAA" = lib.getExe (
let pkgs.writeShellApplication {
qemuHook = pkgs.writeShellApplication {
name = "qemu-hook"; name = "qemu-hook";
runtimeInputs = [ runtimeInputs = [
@ -186,12 +185,12 @@ in
fi fi
''; '';
}; }
in );
[ };
"L /etc/Xorg/active.conf - - - - /etc/Xorg/2_mon.conf" systemd.tmpfiles.rules = [
"L+ /var/lib/libvirt/hooks/qemu - - - - ${lib.getExe qemuHook}" "L /etc/Xorg/active.conf - - - - /etc/Xorg/2_mon.conf"
"L+ /var/lib/libvirt/qemu/Windows.xml - - - - ${./Windows.xml}" "L+ /var/lib/libvirt/qemu/Windows.xml - - - - ${./Windows.xml}"
]; ];
#_file #_file
} }