2023-02-25 19:13:22 +01:00
|
|
|
{lib, ...}:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../.
|
|
|
|
../../../../common/gpu/nvidia/prime.nix
|
2024-09-01 00:43:01 +02:00
|
|
|
../../../../common/gpu/nvidia/turing
|
2023-02-25 19:13:22 +01:00
|
|
|
];
|
|
|
|
|
2023-03-07 21:08:32 +01:00
|
|
|
hardware.nvidia = {
|
|
|
|
powerManagement = {
|
|
|
|
# Enable NVIDIA power management.
|
|
|
|
enable = lib.mkDefault true;
|
2024-09-01 00:43:01 +02:00
|
|
|
|
2023-03-07 21:08:32 +01:00
|
|
|
# Enable dynamic power management.
|
|
|
|
finegrained = lib.mkDefault true;
|
|
|
|
};
|
2023-02-25 19:13:22 +01:00
|
|
|
|
2023-03-07 21:08:32 +01:00
|
|
|
prime = {
|
|
|
|
# Bus ID of the Intel GPU.
|
|
|
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
|
|
|
|
|
|
|
# Bus ID of the NVIDIA GPU.
|
|
|
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
|
|
|
};
|
2023-02-25 19:13:22 +01:00
|
|
|
};
|
|
|
|
}
|