about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-12-30 17:37:28 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-12-30 17:37:28 +0100
commit251a72d467ad3f7cb30116d57f6e2169dd82175b (patch)
treecce935afdf375a80b4ec1934301ebfcab760d631 /modules
parentHardware: Thinkpad: Add intelmetool package (diff)
downloadnixos-config-251a72d467ad3f7cb30116d57f6e2169dd82175b.tar.gz
nixos-config-251a72d467ad3f7cb30116d57f6e2169dd82175b.tar.bz2
nixos-config-251a72d467ad3f7cb30116d57f6e2169dd82175b.zip
Modules: power-save: Add powertop
Diffstat (limited to '')
-rw-r--r--modules/power-save/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/power-save/default.nix b/modules/power-save/default.nix
index f9519a1..8360043 100644
--- a/modules/power-save/default.nix
+++ b/modules/power-save/default.nix
@@ -1,6 +1,10 @@
 { config, pkgs, ... }:
 {
 
+  environment.systemPackages = with pkgs; [
+    powertop
+  ];
+
   boot = {
     kernelParams = [ "pcie_aspm.policy=powersave" ];
     # blacklistedKernelModules = [ "uvcvideo" ];
@@ -29,4 +33,6 @@
     # i2p.enable = pkgs.lib.mkForce false;
     # tor.enable = pkgs.lib.mkForce false;
   };
+
+  powerManagement.powertop.enable = true;
 }