From 8a8823bd6ddb77a9be63c92dd17ccb55fa743370 Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Tue, 17 Jun 2025 00:56:22 -0500 Subject: hosts/tomato: Configure TLP --- hosts/tomato/hardware.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'hosts') 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"; } -- cgit v1.2.3