summary refs log tree commit diff stats
path: root/system/settings/hardware
diff options
context:
space:
mode:
authorAlan Pearce2022-06-23 20:47:17 +0200
committerAlan Pearce2022-06-23 22:38:23 +0200
commit33a6809a8b4fc0b3072dd4b03c57f18e099ac3b6 (patch)
treea24d0a715be042fb65e8f897142e5c67a4b1d681 /system/settings/hardware
parent65b59e85bc18323ef4efa99c69ee243256443550 (diff)
downloadnixfiles-33a6809a8b4fc0b3072dd4b03c57f18e099ac3b6.tar.lz
nixfiles-33a6809a8b4fc0b3072dd4b03c57f18e099ac3b6.tar.zst
nixfiles-33a6809a8b4fc0b3072dd4b03c57f18e099ac3b6.zip
nvidia-gpu: enable power management
Diffstat (limited to 'system/settings/hardware')
-rw-r--r--system/settings/hardware/nvidia-gpu.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/settings/hardware/nvidia-gpu.nix b/system/settings/hardware/nvidia-gpu.nix
index b93b0284..3c099e42 100644
--- a/system/settings/hardware/nvidia-gpu.nix
+++ b/system/settings/hardware/nvidia-gpu.nix
@@ -9,6 +9,11 @@ in { services.xserver.videoDrivers = [ "nvidia" ];
   };
 
   environment.systemPackages = [ nvidia_x11 ];
+  hardware.nvidia = {
+    powerManagement = {
+      enable = true;
+    };
+  };
 
   nixpkgs.config.allowUnfree = true;
   services.picom = {