1
0

battery.nix 569 B

12345678910111213141516171819202122232425262728
  1. { config, pkgs, ... }:
  2. {
  3. imports = [
  4. ./common.nix
  5. ];
  6. services.power-profiles-daemon.enable = false;
  7. services.tlp = {
  8. enable = true;
  9. pd.enable = true;
  10. settings = {
  11. CPU_SCALING_GOVERNOR_ON_AC = "powersave";
  12. CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
  13. CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
  14. CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
  15. PLATFORM_PROFILE_ON_AC = "performance";
  16. PLATFORM_PROFILE_ON_BAT = "low-power";
  17. START_CHARGE_THRESH_BAT0 = 75;
  18. STOP_CHARGE_THRESH_BAT0 = 80;
  19. };
  20. };
  21. }