1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-24 02:29:44 +01:00

feat: Add configurations for nvidia microarchitectures with configs for the open source drivers

This commit is contained in:
Bradley Nelson 2024-08-31 16:40:11 -06:00 committed by mergify[bot]
parent 24bc1f98d8
commit 4ac7150415
6 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{lib, config, ...}:
let
nividiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];
# enable the opensorce drivers if the package supports it
hardware.nvidia.open = lib.mkDefault (nividiaPackage ? open && nividiaPackage ? firmware);
}

View file

@ -0,0 +1,10 @@
{lib, config, ...}:
let
nividiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];
# enable the opensorce drivers if the package supports it
hardware.nvidia.open = lib.mkDefault (nividiaPackage ? open && nividiaPackage ? firmware);
}

View file

@ -0,0 +1,7 @@
{lib, ...}:
{
imports = [ ../. ];
# The open source driver does not support Maxwell GPUs.
hardware.nvidia.open = false;
}

View file

@ -0,0 +1,7 @@
{lib, ...}:
{
imports = [ ../. ];
# The open source driver does not support Pascal GPUs.
hardware.nvidia.open = false;
}

View file

@ -0,0 +1,10 @@
{lib, config, ...}:
let
nividiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];
# enable the opensorce drivers if the package supports it
hardware.nvidia.open = lib.mkDefault (nividiaPackage ? open && nividiaPackage ? firmware);
}

View file

@ -295,6 +295,11 @@
common-gpu-nvidia-sync = import ./common/gpu/nvidia/prime-sync.nix;
common-gpu-nvidia-nonprime = import ./common/gpu/nvidia;
common-gpu-nvidia-disable = import ./common/gpu/nvidia/disable.nix;
common-gpu-nvidia-ada-lovelace = import ./common/gpu/nvidia/ada-lovelace;
common-gpu-nvidia-ampere = import ./common/gpu/nvidia/ampere;
common-gpu-nvidia-turing = import ./common/gpu/nvidia/turing;
common-gpu-nvidia-pascal = import ./common/gpu/nvidia/pascal;
common-gpu-nvidia-maxwell = import ./common/gpu/nvidia/maxwell;
common-hidpi = import ./common/hidpi.nix;
common-pc = import ./common/pc;
common-pc-hdd = import ./common/pc/hdd;