diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/tomato/hardware.nix | 14 |
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"; } |