fix(ahrc-laptop): put back tlp
This commit is contained in:
parent
76c2cdeedf
commit
0634268d98
1 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue