From 644304d94f50d2810642701ebef6973a70c65a7f Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sat, 25 Feb 2023 10:25:48 +0100 Subject: laptop: use tlp instead of auto-cpufreq --- profiles/laptop.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'profiles') 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 @@ inputs: -{ pkgs, ... }: +{ config, ... }: { - services.auto-cpufreq.enable = true; + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = config.powerManagement.cpuFreqGovernor; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + }; + }; } -- cgit v1.2.3