rice/hosts/alice/tlp.nix
buffet bee9f6e1d4
All checks were successful
/ check (pull_request) Successful in 2m21s
feat: increase battery limit for gpn
2024-05-30 16:53:56 +02:00

20 lines
406 B
Nix

_: {
services = {
tlp = {
enable = true;
settings = let
max_percent = 80;
start_charge = 100 - max_percent;
stop_charge = max_percent;
in {
START_CHARGE_THRESH_BAT0 = start_charge;
STOP_CHARGE_THRESH_BAT0 = stop_charge;
START_CHARGE_THRESH_BAT1 = start_charge;
STOP_CHARGE_THRESH_BAT1 = stop_charge;
};
};
};
}