18 lines
355 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|