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