From 09ddeecf4f80c1f8ac4e6bc479ee7c309f30d630 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Fri, 9 Sep 2022 14:16:05 +0100 Subject: [PATCH] nixos/tower: Enable TLP --- nixos/boxes/tower/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/boxes/tower/default.nix b/nixos/boxes/tower/default.nix index e1c80d4..d3a4550 100644 --- a/nixos/boxes/tower/default.nix +++ b/nixos/boxes/tower/default.nix @@ -74,6 +74,16 @@ dmeventd.enable = true; }; fstrim.enable = true; + tlp = { + enable = true; + settings = { + CPU_BOOST_ON_BAT = 0; + CPU_SCALING_GOVERNOR_ON_BATTERY = "powersave"; + START_CHARGE_THRESH_BAT0 = 90; + STOP_CHARGE_THRESH_BAT0 = 97; + RUNTIME_PM_ON_BAT = "auto"; + }; + }; resolved = { enable = true;