aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/services/tlp.nix
blob: 64f196083cf0767b7823dcf3dfeecaae8f65ad32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{config, lib, ...}:
{
  services.tlp = 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;
    };
  };

  services.tlp = lib.mkIf (config.networking.hostName == "ginaz") {
    enable = true;
    settings = {
      STOP_CHARGE_THRESH_BAT0 = 1;
    };
  };
}