mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-20 01:49:42 +01:00
Enable NVIDIA power management for Dell XPS 7590
This commit is contained in:
parent
f6610997b0
commit
e72756d0b4
1 changed files with 15 additions and 5 deletions
|
@ -5,11 +5,21 @@
|
|||
../../../../common/gpu/nvidia/prime.nix
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
# Bus ID of the Intel GPU.
|
||||
intelBusId = lib.mkDefault "PCI:0:2:0";
|
||||
hardware.nvidia = {
|
||||
powerManagement = {
|
||||
# Enable NVIDIA power management.
|
||||
enable = lib.mkDefault true;
|
||||
|
||||
# Enable dynamic power management.
|
||||
finegrained = lib.mkDefault true;
|
||||
};
|
||||
|
||||
# Bus ID of the NVIDIA GPU.
|
||||
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue