Skip to content

Instantly share code, notes, and snippets.

@cizordj
Last active April 5, 2026 15:31
Show Gist options
  • Select an option

  • Save cizordj/e4d6934b4323486bf59fb82b7a44b34d to your computer and use it in GitHub Desktop.

Select an option

Save cizordj/e4d6934b4323486bf59fb82b7a44b34d to your computer and use it in GitHub Desktop.
NixOS configuration for running NVIDIA GTX 750 Ti (Maxwell) with driver 580.142.
{ config, ... }:
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics.enable = true;
nixpkgs.config.nvidia.acceptLicense = true;
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = false;
nvidiaSettings = true;
gsp.enable = false;
nvidiaPersistenced = true;
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "580.142";
sha256_64bit = "sha256-IJFfzz/+icNVDPk7YKBKKFRTFQ2S4kaOGRGkNiBEdWM=";
settingsSha256 = "sha256-BnrIlj5AvXTfqg/qcBt2OS9bTDDZd3uhf5jqOtTMTQM=";
persistencedSha256 = "sha256-il403KPFAnDbB+dITnBGljhpsUPjZwmLjGt8iPKuBqw=";
};
};
}
@cizordj
Copy link
Copy Markdown
Author

cizordj commented Apr 5, 2026

NixOS configuration for running NVIDIA GTX 750 Ti (Maxwell) with driver 580.142.

Newer NVIDIA drivers (e.g. 595+) silently drop or break support for older GPUs like Maxwell, causing errors such as:

modprobe nvidia → No such device

This configuration pins a working driver version using mkDriver, disables GSP (not supported on Maxwell), and provides all required hashes.

Tested on NixOS with flakes.

Useful for anyone trying to keep older NVIDIA GPUs working on a modern NixOS system without downgrading the entire nixpkgs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment