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);
}