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

This commit is contained in:
Bradley Nelson authored and mergify[bot] committed 2024-09-03 17:29:09 +00:00
1 parent 24bc1f98d8
commit 4ac7150415
6 files changed
+49

No files matched your search

@@ -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);
}
+10
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);
}
+7
View File
@@ -0,0 +1,7 @@
{lib, ...}:
{
imports = [ ../. ];
# The open source driver does not support Maxwell GPUs.
hardware.nvidia.open = false;
}
+7
View File
@@ -0,0 +1,7 @@
{lib, ...}:
{
imports = [ ../. ];
# The open source driver does not support Pascal GPUs.
hardware.nvidia.open = false;
}
+10
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);
}