DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

2bb7676c165669a355b3fb73159e4d6df536bca3 — Jonni Liljamo a month ago 58ab433
feat: tlp
1 files changed, 17 insertions(+), 0 deletions(-)

A modules/nixos/tlp.nix
A modules/nixos/tlp.nix => modules/nixos/tlp.nix +17 -0
@@ 0,0 1,17 @@
{
  flake.modules.nixos.tlp = {...}: {
    services.tlp = {
      enable = true;
      settings = {
        CPU_SCALING_GOVERNOR_ON_AC = "performance";
        CPU_SCALING_GOVERNOR_ON_BAT = "powersave";

        CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance";
        CPU_ENERGY_PERF_POLICY_ON_BAT = "power";

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