summaryrefslogtreecommitdiffstats
path: root/profiles/laptop.nix
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2023-02-25 10:25:48 +0100
committerMinijackson <minijackson@riseup.net>2023-02-25 10:25:48 +0100
commit644304d94f50d2810642701ebef6973a70c65a7f (patch)
tree25c88853946e48dbb9a3b29642fb83fb62fb4fb2 /profiles/laptop.nix
parent931b916c355da9fde4946b31a7958a645a1dc8c8 (diff)
downloadnixos-config-reborn-644304d94f50d2810642701ebef6973a70c65a7f.tar.gz
nixos-config-reborn-644304d94f50d2810642701ebef6973a70c65a7f.zip
laptop: use tlp instead of auto-cpufreq
Diffstat (limited to 'profiles/laptop.nix')
-rw-r--r--profiles/laptop.nix10
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 @@
1inputs: 1inputs:
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}