Builder for nvidia-x11-550.78-6.10.drv failed with exit code 2

Ah, never mind. If you’re on NixOS stable, you also need vulkan-headers:

I think you can either add that to nvidia-settings’ buildInputs or just disable it with hardware.nvidia.nvidiaSettings = false;