battery.nix 547 B

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