nix/nixos/common/services/tlp.nix

13 lines
352 B
Nix
Raw Normal View History

2023-11-19 09:34:23 +01:00
{ ... }: {
services.tlp = {
enable = true;
settings = {
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_BATTERY = "powersave";
# Specific to the Framework, since I have it limited to 80% charge in the BIOS
START_CHARGE_THRESH_BAT0 = 70;
STOP_CHARGE_THRESH_BAT0 = 79;
RUNTIME_PM_ON_BAT = "auto";
};
};
}