reworked sxhkd, added QMK stuff, fixed VM

This commit is contained in:
Gerg-L 2023-11-05 00:58:49 -04:00
parent 928040c5cf
commit 56c9d32f85
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
5 changed files with 95 additions and 91 deletions

View file

@ -145,11 +145,9 @@ in
'';
systemd.tmpfiles.settings."vfio" = {
"/etc/Xorg/active.conf"."L".argument = "/etc/Xorg/2_mon.conf";
"/var/lib/libvirt/qemu/Windows.xml"."L+".argument = toString ./Windows.xml;
"/var/lib/libvirt/hooks/qemu"."L+".argument = lib.getExe (
pkgs.writeShellApplication {
systemd.tmpfiles.rules =
let
qemuHook = pkgs.writeShellApplication {
name = "qemu-hook";
runtimeInputs = [
@ -157,11 +155,12 @@ in
pkgs.systemd
pkgs.kmod
];
text = ''
GUEST_NAME="$1"
OPERATION="$2"
if [ "$GUEST_NAME" == "Windows" ]; then
if [ "$GUEST_NAME" != "Windows" ]; then
exit 0
fi
@ -190,9 +189,14 @@ in
rm /etc/Xorg/ONE_MONITOR
systemctl start display-manager.service
fi
'';
}
);
};
};
in
[
"L /etc/Xorg/active.conf - - - - /etc/Xorg/2_mon.conf"
"L+ /var/lib/libvirt/hooks/qemu - - - - ${lib.getExe qemuHook}"
"L+ /var/lib/libvirt/qemu/Windows.xml - - - - ${./Windows.xml}"
];
_file = ./vfio.nix;
}