From f50cf25271806069a4b0abbe9bea489fa9295a31 Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Sat, 18 Oct 2025 15:08:53 +0200 Subject: [PATCH] fix: wodan power config Signed-off-by: Lander Van den Bulcke --- hosts/widar/default.nix | 16 ---------------- hosts/wodan/default.nix | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/hosts/widar/default.nix b/hosts/widar/default.nix index 6a471ee..a8cbca1 100644 --- a/hosts/widar/default.nix +++ b/hosts/widar/default.nix @@ -33,22 +33,6 @@ variant = ""; }; - services.logind = { - lidSwitch = "hibernate"; - lidSwitchExternalPower = "lock"; - }; - - services.thermald.enable = true; - services.tlp = { - enable = true; - settings = { - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - }; - }; - services.openssh = { enable = true; openFirewall = true; diff --git a/hosts/wodan/default.nix b/hosts/wodan/default.nix index c7ce01b..5e63e3a 100644 --- a/hosts/wodan/default.nix +++ b/hosts/wodan/default.nix @@ -39,6 +39,26 @@ variant = ""; }; + services.logind = { + lidSwitch = "hibernate"; + lidSwitchExternalPower = "lock"; + }; + + services.power-profiles-daemon.enable = false; + services.thermald.enable = true; + services.tlp = { + enable = true; + settings = { + CPU_BOOST_ON_AC = 1; + CPU_BOOST_ON_BAT = 0; + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + STOP_CHARGING_THRES_BAT0 = 95; + }; + }; + security.pam.loginLimits = [ { domain = "@audio";