This commit is contained in:
waveringana 2025-06-15 06:11:29 -04:00
parent e0c6926ba0
commit 23bf9ccaa3
3 changed files with 7 additions and 4 deletions

View file

@ -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
fi

View file

@ -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" ];
}
}

1
result
View file

@ -1 +0,0 @@
/nix/store/4483jzzk7w649g57g0p1gfnk2skkz85v-nixos-system-focalor-25.05.20250525.7c43f08