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; }; }; }; }