diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-05-02 14:55:29 +0530 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-05-02 14:55:29 +0530 | 
| commit | c591cf20fead8e1bd4b235f05086338a4907f0b0 (patch) | |
| tree | 51c2a6dcefeac2b509d04555649b943131548d1f /modules/laptop.nix | |
| parent | 1a67a1352b08a59603b471f1838772512350641f (diff) | |
update
Diffstat (limited to 'modules/laptop.nix')
| -rw-r--r-- | modules/laptop.nix | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/modules/laptop.nix b/modules/laptop.nix new file mode 100644 index 0000000..f619d78 --- /dev/null +++ b/modules/laptop.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: + +{ +  services.tlp = { +    enable = true; +    settings = { +      CPU_SCALING_GOVERNOR_ON_AC = "performance"; +      CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + +      CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; +      CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + +      CPU_MIN_PERF_ON_AC = 0; +      CPU_MAX_PERF_ON_AC = 100; +      CPU_MIN_PERF_ON_BAT = 0; +      CPU_MAX_PERF_ON_BAT = 20; +    }; +  }; +} | 
