hardware.nvidia.package
NixOS option
The NVIDIA driver package to use. Prefer using hardware.nvidia.branch when possible. If you set this option, it is recommended to pick a package from config.boot.kernelPackages.nvidiaPackages so the driver build matches your configured kernel. For custom versions, you can use nvidiaPackages.mkDriver; see pkgs/os-specific/linux/nvidia-x11/default.nix for examples.
type: packageDefault
config.boot.kernelPackages.nvidiaPackages.${config.hardware.nvidia.branch}Example
declared in: nixos/modules/hardware/video/nvidia.nixView source on NixOS/nixpkgs →config.boot.kernelPackages.nvidiaPackages.legacy_470