When I try to run a Windows VM in virt-manager (so KVM/QEMU) with GPU passthrough, I get an error stating ‘/lib/modules/6.7.2/modules.alias’ file missing. Because this is Nix, it is located at /run/booted-system/kernel-modules/lib/modules/6.7.2/modules.alias.
I’m having this issue, too, except /lib/modules/6.1.75-hardened1/modules.alias – it seems to be after updating nixos that this happened. That’s the only change that I can think of that I did
For now, I’ve just symlinked the file and it works. I will check out other options, but it simply needs the file, so just doing this is a reasonable workaround for me.