Enable NVIDIA power management for Dell XPS 7590

This commit is contained in:
Ghislain Vaillant 2023-03-07 21:08:32 +01:00 committed by GitHub
parent f6610997b0
commit e72756d0b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,11 +5,21 @@
../../../../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.
intelBusId = lib.mkDefault "PCI:0:2:0";
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
};
}