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: package
Default
config.boot.kernelPackages.nvidiaPackages.${config.hardware.nvidia.branch}
Example
config.boot.kernelPackages.nvidiaPackages.legacy_470
declared in: nixos/modules/hardware/video/nvidia.nixView source on NixOS/nixpkgs →