chore: Activate nvidia powermanagement

This commit is contained in:
Kourosh Tafreshi 2023-11-20 16:24:27 +02:00 committed by mergify[bot]
parent 82cf9ae3f6
commit fc126177f6
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ lib,pkgs, ... }: {
{ lib, pkgs, ... }: {
imports = [ ../../../../common/gpu/nvidia/prime.nix ];
hardware = {
@ -9,6 +9,13 @@
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
powerManagement = {
# Enable NVIDIA power management.
enable = lib.mkDefault true;
# Enable dynamic power management.
finegrained = lib.mkDefault true;
};
};
opengl = {
enable = lib.mkDefault true;