nixdots/modules/nixos/tlp.nix

17 lines
416 B
Nix

{...}: {
powerManagement.powertop.enable = true;
services.upower.enable = true;
services = {
power-profiles-daemon.enable = true;
tlp = {
enable = false;
settings = {
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
STOP_CHARGE_THRESH_BAT0 = 95;
};
};
};
}