From fe7dd57bc16312259babc650f4d34c0c72063281 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Fri, 20 Dec 2024 23:27:42 +0100 Subject: [PATCH] feat(gorgon): adapt power management options --- nixos/gorgon/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos/gorgon/configuration.nix b/nixos/gorgon/configuration.nix index 935052a..c90a2eb 100644 --- a/nixos/gorgon/configuration.nix +++ b/nixos/gorgon/configuration.nix @@ -226,5 +226,16 @@ in ]; }; + powerManagement = { + enable = true; + powertop.enable = true; + cpuFreqGovernor = "schedutil"; + powerUpCommands = '' + echo 40 > /sys/class/power_supply/BAT0/charge_control_start_threshold + echo 80 > /sys/class/power_supply/BAT0/charge_control_stop_threshold + ''; + }; + services.tlp.enable = false; + system.stateVersion = "23.11"; }