mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
feat: Add configurations for nvidia microarchitectures with configs for the open source drivers
This commit is contained in:
parent
24bc1f98d8
commit
4ac7150415
6 changed files with 49 additions and 0 deletions
10
common/gpu/nvidia/ada-lovelace/default.nix
Normal file
10
common/gpu/nvidia/ada-lovelace/default.nix
Normal 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);
|
||||||
|
}
|
10
common/gpu/nvidia/ampere/default.nix
Normal file
10
common/gpu/nvidia/ampere/default.nix
Normal 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
common/gpu/nvidia/maxwell/default.nix
Normal file
7
common/gpu/nvidia/maxwell/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{lib, ...}:
|
||||||
|
{
|
||||||
|
imports = [ ../. ];
|
||||||
|
|
||||||
|
# The open source driver does not support Maxwell GPUs.
|
||||||
|
hardware.nvidia.open = false;
|
||||||
|
}
|
7
common/gpu/nvidia/pascal/default.nix
Normal file
7
common/gpu/nvidia/pascal/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{lib, ...}:
|
||||||
|
{
|
||||||
|
imports = [ ../. ];
|
||||||
|
|
||||||
|
# The open source driver does not support Pascal GPUs.
|
||||||
|
hardware.nvidia.open = false;
|
||||||
|
}
|
10
common/gpu/nvidia/turing/default.nix
Normal file
10
common/gpu/nvidia/turing/default.nix
Normal 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);
|
||||||
|
}
|
|
@ -295,6 +295,11 @@
|
||||||
common-gpu-nvidia-sync = import ./common/gpu/nvidia/prime-sync.nix;
|
common-gpu-nvidia-sync = import ./common/gpu/nvidia/prime-sync.nix;
|
||||||
common-gpu-nvidia-nonprime = import ./common/gpu/nvidia;
|
common-gpu-nvidia-nonprime = import ./common/gpu/nvidia;
|
||||||
common-gpu-nvidia-disable = import ./common/gpu/nvidia/disable.nix;
|
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-hidpi = import ./common/hidpi.nix;
|
||||||
common-pc = import ./common/pc;
|
common-pc = import ./common/pc;
|
||||||
common-pc-hdd = import ./common/pc/hdd;
|
common-pc-hdd = import ./common/pc/hdd;
|
||||||
|
|
Loading…
Reference in a new issue