From 0634268d981ffc3a974631db6a6a06f3460d2ecf Mon Sep 17 00:00:00 2001 From: Ahurac Date: Mon, 4 Nov 2024 08:56:06 +0100 Subject: [PATCH] fix(ahrc-laptop): put back tlp --- ahrc-laptop/configuration.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ahrc-laptop/configuration.nix b/ahrc-laptop/configuration.nix index e1f624b..ffc7500 100644 --- a/ahrc-laptop/configuration.nix +++ b/ahrc-laptop/configuration.nix @@ -10,7 +10,22 @@ environment.systemPackages = with pkgs; [ powertop brightnessctl ]; services.libinput.enable = true; - services.power-profiles-daemon.enable = true; + + 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 = 100; + CPU_MAX_PERF_ON_AC = 100; + CPU_MIN_PERF_ON_BAT = 20; + CPU_MAX_PERF_ON_BAT = 100; + }; + }; programs.bash.promptInit = '' if [ "$(whoami)" = root ]; then