
You need an MXM card (see above) for Non-Optimus mode. Non-MXM cards require Optimus, Nvidia's integrated-vs-discrete GPU switching technology. MXM cards allow you to use the Nvidia card standalone, in Non-Optimus mode.

Doing otherwise will cause a broken nf to be generated. Please note that, if you are setting up PRIME offloading, you must set the single value of "nvidia" even though it would be more conceptually correct to also include the driver for your other GPU. Note that nixGL is not specific to NVIDIA GPUs, and should work with just about any GPU. With nixGL installed, you'll run nixGL foobar instead of foobar. You need to have GPU drivers installed on your distro (for kernel modules). The nixGL project provides wrapper to use GL drivers on non-NixOS systems. If you're using Nix-packaged software on a non-NixOS system, you'll need a workaround to get everything up-and-running. (The setting is also valid for wayland installations despite it's name.)

You can consult the set of possible options in the source here. For "legacy" cards, you can consult nvidia official legacy driver list. }Īs noted in the final comment, you'll need to determine the appropriate driver version for your card. stable # nvidia-drm.modeset=1 is required for some wayland compositors, e.g. enable = true # Optionally, you may need to select the appropriate driver version for your specific GPU.
