From 23bf9ccaa3ed405f9459092bbd8e4d228dca3ba0 Mon Sep 17 00:00:00 2001 From: waveringana Date: Sun, 15 Jun 2025 06:11:29 -0400 Subject: [PATCH] meow --- hosts/focalor/scripts/vm-win11-hook.sh | 6 +++++- hosts/focalor/vfio.nix | 4 ++-- result | 1 - 3 files changed, 7 insertions(+), 4 deletions(-) delete mode 120000 result diff --git a/hosts/focalor/scripts/vm-win11-hook.sh b/hosts/focalor/scripts/vm-win11-hook.sh index 59b39f5..6c9232e 100644 --- a/hosts/focalor/scripts/vm-win11-hook.sh +++ b/hosts/focalor/scripts/vm-win11-hook.sh @@ -1,5 +1,9 @@ #!/run/current-system/sw/bin/bash +echo "qemu-hook: ${1} ${2}" >> /tmp/qemu-hook.log + +set -x + readonly GUEST_NAME="$1" readonly HOOK_NAME="$2" readonly STATE_NAME="$3" @@ -54,4 +58,4 @@ if [[ "$HOOK_NAME" == "prepare" && "$STATE_NAME" == "begin" ]]; then start_hook elif [[ "$HOOK_NAME" == "release" && "$STATE_NAME" == "end" ]]; then revert_hook -fi \ No newline at end of file +fi diff --git a/hosts/focalor/vfio.nix b/hosts/focalor/vfio.nix index ebd2e0c..07cac37 100755 --- a/hosts/focalor/vfio.nix +++ b/hosts/focalor/vfio.nix @@ -18,7 +18,7 @@ }; }; hooks.qemu = { - "win11" = ./scripts/vm-win11-hook.sh; + win11 = ./scripts/vm-win11-hook.sh; }; }; @@ -58,4 +58,4 @@ }; users.extraUsers.regent.extraGroups = [ "libvirtd" ]; -} \ No newline at end of file +} diff --git a/result b/result deleted file mode 120000 index 3785af3..0000000 --- a/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/4483jzzk7w649g57g0p1gfnk2skkz85v-nixos-system-focalor-25.05.20250525.7c43f08 \ No newline at end of file