Skip to content

Commit

Permalink
Merge of #1094
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Sep 3, 2024
2 parents 24bc1f9 + a37f255 commit e756a9f
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 1 deletion.
10 changes: 10 additions & 0 deletions common/gpu/nvidia/ada-lovelace/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{lib, config, ...}:
let
nividiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];

# enable the open source drivers if the package supports it
hardware.nvidia.open = lib.mkOverride 990 (nividiaPackage ? open && nividiaPackage ? firmware);
}
10 changes: 10 additions & 0 deletions common/gpu/nvidia/ampere/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{lib, config, ...}:
let
nividiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];

# enable the open source drivers if the package supports it
hardware.nvidia.open = lib.mkOverride 990 (nividiaPackage ? open && nividiaPackage ? firmware);
}
7 changes: 7 additions & 0 deletions common/gpu/nvidia/maxwell/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{lib, ...}:
{
imports = [ ../. ];

# The open source driver does not support Maxwell GPUs.
hardware.nvidia.open = false;
}
7 changes: 7 additions & 0 deletions common/gpu/nvidia/pascal/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{lib, ...}:
{
imports = [ ../. ];

# The open source driver does not support Pascal GPUs.
hardware.nvidia.open = false;
}
10 changes: 10 additions & 0 deletions common/gpu/nvidia/turing/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{lib, config, ...}:
let
nividiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];

# enable the open source drivers if the package supports it
hardware.nvidia.open = lib.mkOverride 990 (nividiaPackage ? open && nividiaPackage ? firmware);
}
3 changes: 2 additions & 1 deletion dell/xps/15-7590/nvidia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
imports = [
../.
../../../../common/gpu/nvidia/prime.nix
../../../../common/gpu/nvidia/turing
];

hardware.nvidia = {
powerManagement = {
# Enable NVIDIA power management.
enable = lib.mkDefault true;

# Enable dynamic power management.
finegrained = lib.mkDefault true;
};
Expand Down
1 change: 1 addition & 0 deletions dell/xps/15-9570/nvidia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
imports = [
../../../../common/cpu/intel
../../../../common/gpu/nvidia/prime.nix
../../../../common/gpu/nvidia/pascal
../../../../common/pc/laptop
../xps-common.nix
];
Expand Down

0 comments on commit e756a9f

Please sign in to comment.