1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-15 07:29:41 +01:00
nixos-hardware/common/gpu/nvidia/ada-lovelace/default.nix
2024-10-31 09:22:48 +00:00

10 lines
262 B
Nix

{lib, config, ...}:
let
nvidiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];
# enable the open source drivers if the package supports it
hardware.nvidia.open = lib.mkOverride 990 (nvidiaPackage ? open && nvidiaPackage ? firmware);
}