mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-01 21:43:31 +01:00
feat: Add configurations for nvidia microarchitectures with configs for the open source drivers
This commit is contained in:
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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{lib, ...}:
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
# The open source driver does not support Maxwell GPUs.
|
||||
hardware.nvidia.open = false;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{lib, ...}:
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
# The open source driver does not support Pascal GPUs.
|
||||
hardware.nvidia.open = false;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user