Merge #579
579: Enable NVIDIA power management for Dell XPS 7590 r=Mic92 a=ghisvail Co-authored-by: Ghislain Vaillant <ghisvail@users.noreply.github.com>
This commit is contained in:
commit
7ba21e76d4
|
@ -5,11 +5,21 @@
|
||||||
../../../../common/gpu/nvidia/prime.nix
|
../../../../common/gpu/nvidia/prime.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.nvidia.prime = {
|
hardware.nvidia = {
|
||||||
|
powerManagement = {
|
||||||
|
# Enable NVIDIA power management.
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
# Enable dynamic power management.
|
||||||
|
finegrained = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
|
prime = {
|
||||||
# Bus ID of the Intel GPU.
|
# Bus ID of the Intel GPU.
|
||||||
intelBusId = lib.mkDefault "PCI:0:2:0";
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
||||||
|
|
||||||
# Bus ID of the NVIDIA GPU.
|
# Bus ID of the NVIDIA GPU.
|
||||||
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue