mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
feat: Add configurations for nvidia microarchitectures with configs for the open source drivers
This commit is contained in:
committed by
mergify[bot]
parent
24bc1f98d8
commit
4ac7150415
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-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;
|
||||
|
||||
Reference in New Issue
Block a user