{ ... }: {
  services.tlp = {
    enable = true;
    settings = {
      CPU_MAX_PERF_ON_BAT = 30;
      RUNTIME_PM_ON_BAT = "auto";
      PCIE_ASPM_ON_BAT = "powersupersave";
      PLATFORM_PROFILE_ON_BAT = "low-power";
      CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
      CPU_ENERGY_PERF_POLICY_ON_BAT = "power";

      #CPU_SCALING_GOVERNOR_ON_AC = "powersave";
      #CPU_ENERGY_PERF_POLICY_ON_AC = "power";

      START_CHARGE_THRESH_BAT0 = 40;
      STOP_CHARGE_THRESH_BAT0 = 80;
    };
  };
}
