summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-06-17 00:56:22 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-06-17 00:56:22 -0500
commit8a8823bd6ddb77a9be63c92dd17ccb55fa743370 (patch)
treeed411207fca67ee0d013d480426ad47c6bc9a48a
parent9c152db0e06703b3099627b9e87cb05d3848ba98 (diff)
downloadnixos-config-8a8823bd6ddb77a9be63c92dd17ccb55fa743370.tar.gz
nixos-config-8a8823bd6ddb77a9be63c92dd17ccb55fa743370.zip
hosts/tomato: Configure TLP
-rw-r--r--hosts/tomato/hardware.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/hosts/tomato/hardware.nix b/hosts/tomato/hardware.nix
index 884097b..5327b44 100644
--- a/hosts/tomato/hardware.nix
+++ b/hosts/tomato/hardware.nix
@@ -45,5 +45,19 @@ in
];
this.unfree.allowed = ["broadcom-bt-firmware"];
+ services.tlp.settings = {
+ START_CHARGE_THRESH_BAT0 = 50;
+ STOP_CHARGE_THRESH_BAT0 = 60;
+
+ WOL_DISABLE = "N";
+ MEM_SLEEP_ON_BAT = "deep";
+
+ CPU_BOOST_ON_AC = 1;
+ CPU_BOOST_ON_BAT = 0;
+ CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
+
+ MAX_LOST_WORK_SECS_ON_AC = 30;
+ }
+
nixpkgs.hostPlatform = "x86_64-linux";
}