rice/hosts/alice/tlp.nix
2024-05-20 12:06:16 +02:00

18 lines
355 B
Nix

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