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