From 96c904e189b86dcac407cd44ea2b4ac2a345427e Mon Sep 17 00:00:00 2001 From: 0xTux <0xtux@pm.me> Date: Thu, 14 Mar 2024 10:59:38 +0530 Subject: [PATCH] add auto-cpufreq --- hosts/canopus/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/hosts/canopus/default.nix b/hosts/canopus/default.nix index 61d8a74..b85d68e 100755 --- a/hosts/canopus/default.nix +++ b/hosts/canopus/default.nix @@ -176,6 +176,26 @@ libinput.touchpad.naturalScrolling = true; }; + # To use Auto-cpufreq we need to + # disable TLP because it's enabled by nixos-hardware + tlp.enable = false; + auto-cpufreq = { + enable = true; + settings = { + battery = { + governor = "powersave"; + turbo = "never"; + scaling_min_freq = 400000; + scaling_max_freq = 2800000; + }; + charger = { + governor = "powersave"; + turbo = "never"; + scaling_max_freq = 3300000; + }; + }; + }; + blueman.enable = true; supergfxd = {