I’m trying to set up a single cpu passthrough for my windows vm using virt-manager, and I need to write some hooks for virtio to do it.
libvirtd.enable = true;
libvirtd.hooks.daemon = {
"pac" = pkgs.writeScriptBin "passthrough.sh" ''
"$("${pkgs.kmod}/bin/modprobe -V")" >> /troubleshoot.txt
exit 1
'';
};
The script does not execute when the libvirt daemon starts and I get this warning:
nixos .libvirtd-wrapp[30900]: Non-executable hook script /var/lib/libvirt/hooks/daemon.d/pac
Despite the fact that the soft link in daemon.d and the /nix/store/xxxxx/lib/pac files are executable for all users.
Am I doint something wrong or is this bugged?