diff options
author | Minijackson <minijackson@riseup.net> | 2023-02-25 10:25:48 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-02-25 10:25:48 +0100 |
commit | 644304d94f50d2810642701ebef6973a70c65a7f (patch) | |
tree | 25c88853946e48dbb9a3b29642fb83fb62fb4fb2 /profiles | |
parent | 931b916c355da9fde4946b31a7958a645a1dc8c8 (diff) | |
download | nixos-config-reborn-644304d94f50d2810642701ebef6973a70c65a7f.tar.gz nixos-config-reborn-644304d94f50d2810642701ebef6973a70c65a7f.zip |
laptop: use tlp instead of auto-cpufreq
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/laptop.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/profiles/laptop.nix b/profiles/laptop.nix index 3b5f489..f6c24a9 100644 --- a/profiles/laptop.nix +++ b/profiles/laptop.nix | |||
@@ -1,7 +1,13 @@ | |||
1 | inputs: | 1 | inputs: |
2 | 2 | ||
3 | { pkgs, ... }: | 3 | { config, ... }: |
4 | 4 | ||
5 | { | 5 | { |
6 | services.auto-cpufreq.enable = true; | 6 | services.tlp = { |
7 | enable = true; | ||
8 | settings = { | ||
9 | CPU_SCALING_GOVERNOR_ON_AC = config.powerManagement.cpuFreqGovernor; | ||
10 | CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; | ||
11 | }; | ||
12 | }; | ||
7 | } | 13 | } |