blob: 6eb0b82f63d27e2166a22afbf56b45b604e458b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{config, lib, ...}:
{
services.tlp.enable = true;
lib.mkIf ((builtins.match "^(jupiter|neptune|saturn|uranus)$" config.networking.hostName) != null) {
services.tlp = {
settings = {
START_CHARGE_THRESH_BAT0 = 40;
STOP_CHARGE_THRESH_BAT0 = 50;
};
};
};
lib.mkIf (config.networking.hostName == "ginaz") {
services.tlp = {
settings = {
STOP_CHARGE_THRESH_BAT0 = 1;
};
};
};
}
|