From 462433542d3e685849289fd46dedfeb2d745bae7 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Sat, 3 Aug 2024 15:10:45 +0300 Subject: [PATCH] tlp enabled --- configuration.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/configuration.nix b/configuration.nix index 71912ec..a86aabe 100644 --- a/configuration.nix +++ b/configuration.nix @@ -117,7 +117,27 @@ }; services.cpupower-gui.enable = true; + services.power-profiles-daemon.enable = false; + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + + CPU_MIN_PERF_ON_AC = 0; + CPU_MAX_PERF_ON_AC = 100; + CPU_MIN_PERF_ON_BAT = 0; + CPU_MAX_PERF_ON_BAT = 20; + + #Optional helps save long term battery health + START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge + STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging + + }; + }; # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true;