programs.nix-required-mounts.presets.nvidia-gpu.enable

NixOS option

Whether to enable Declare the support for derivations that require an Nvidia GPU to be available, e.g. derivations with requiredSystemFeatures = [ "cuda" ]. This mounts the corresponding userspace drivers and device nodes in the sandbox, but only for derivations that request these special features. You may extend or override the exposed paths via the programs.nix-required-mounts.allowedPatterns.nvidia-gpu.paths option. .

type: boolean
Default
false
Example
true
declared in: nixos/modules/programs/nix-required-mounts.nixView source on NixOS/nixpkgs →