rice/hosts/alice/tlp.nix
buffet 682239b7c8
All checks were successful
/ check (push) Successful in 2m27s
Revert "feat: increase battery limit for gpn"
This reverts commit bee9f6e1d4.

Event is now over. :(
2024-06-03 09:44:37 +00:00

20 lines
406 B
Nix

_: {
services = {
tlp = {
enable = true;
settings = let
max_percent = 60;
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;
};
};
};
}