tried to reinstall system completely, and now there are two things i noticed:
this endless kernel modules loading appears only if display manager is enabled, which givese one of two possible variants: either display manager somehow causes this problem to appear (and i don’t think it’s possible, display manager enables only after kernel modules being loaded up) or nvidia modules don’t get loaded up when display manager is available (which makes sense, no xserver - no modules from nvidia-x11). either way this problem is freaking me out already and i have no idea how to solve it.
also some udev problems (udev services can’t be shutted down when rebooting/shutting the system down), don’t really know if it’s even connected to this accursed issue, but here:
finally managed to figure out the problem! turns out nvidia-x11 in unstable nixpkgs branch doesn’t work (at least for me,i have no idea why though) and switching to stable (25.05) branch solved the issue (sometimes i have to wait for modules to load, then i have “failed to load kernel modules” message and system at least boots up and nvidia drivers work somehow).
but here’s a thing - i REALLY want to stick with unstable branch because there’s no quickshell package for stable one. can i somehow downgrade only nvidia drivers?
upd: found how to use specific nvidia version, built it and switched back to unstable branch with my beloved quickshell <3
Huh, that’s bizarre. We’ve triple-checked that the package produces the modules. Maybe something changed in the way the kernel modules are aggregated and that hasn’t made its way across everything yet? It’s very odd, but well, I guess that works for now…
FWIW, you can also just use stable and grab specifically the quickshell package from unstable. That’d be my personal suggestion; using unstable gives you no stability guarantees, you may have to jump and fix things manually on every update, usually with no documentation to assist you.
I personally manually set the nvidia package version on stable, since stable’s is often out of date, and nvidia seem to release a critical-CVE-fixing driver every month. I find it quite important to stay up-to-date there, access to GPU resources is practically expected by websites, and a sufficiently critical CVE in the graphics driver can mean RCE by random ads or videos…