Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
Comment thread
Mic92 marked this conversation as resolved.
}
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