From fb9f3d8381c2f86fcc88a4bf01f30f7d5c9b3ed3 Mon Sep 17 00:00:00 2001 From: xenia Date: Wed, 30 Apr 2025 21:38:27 +0200 Subject: [PATCH] auto-cpufreq --- nixos/machines/foxhut/machine.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixos/machines/foxhut/machine.nix b/nixos/machines/foxhut/machine.nix index 60479368..838c2734 100644 --- a/nixos/machines/foxhut/machine.nix +++ b/nixos/machines/foxhut/machine.nix @@ -39,6 +39,18 @@ in { ]; }; + services.auto-cpufreq.enable = true; + services.auto-cpufreq.settings = { + battery = { + governor = "ondemand"; + turbo = "never"; + }; + charger = { + governor = "performance"; + turbo = "auto"; + }; + }; + networking.firewall.interfaces."enu1c2".allowedUDPPortRanges = [ { from = 0; to = 65535; } ]; networking.firewall.interfaces."enu1c2".allowedTCPPortRanges = [ { from = 0; to = 65535; } ];