fix(ahrc-laptop): put back tlp

This commit is contained in:
Ahurac 2024-11-04 08:56:06 +01:00
parent 76c2cdeedf
commit 0634268d98

View file

@ -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