From b327a80bfbd86d10ded7679dcf8473708e79cd32 Mon Sep 17 00:00:00 2001 From: mir Date: Tue, 19 Mar 2024 12:08:11 -0800 Subject: [PATCH] power management --- configuration.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index d450325..7f37820 100644 --- a/configuration.nix +++ b/configuration.nix @@ -36,7 +36,17 @@ LC_TIME = "en_US.UTF-8"; }; - + services.auto-cpufreq.enable = true; + services.auto-cpufreq.settings = { + battery = { + governor = "powersave"; + turbo = "never"; + }; + charger = { + governor = "performance"; + turbo = "auto"; + }; + }; # Enable the X11 windowing system. services.xserver = { @@ -125,7 +135,6 @@ zsh gparted ntfs3g - tlp ]; };