Can you share the full configuration you’ve ended up with? It’s way easier to tell you which options to change than play whack-a-mole with what you may or may not have picked up from the internet.
It’d also be nice to know:
- Which DE/WM you use
- Whether you use its wayland session, if it has a choice
- Whether you also have an iGPU
- Whether you care for using said iGPU
The nvidia situation is honestly awful. Pretty much all documentation you’ll find is just the latest iteration of a cargo cult, almost nobody actually reads or understands the upstream nvidia documentation. Even if you find something “correct”, your desired hardware/software will probably differ enough that whatever they did doesn’t apply to your use case, because nvidia make awful drivers. Hell, I’d argue you should not even use the NixOS module, but I can at least help you work around its quirks if you tell me what you’re working with.