fix(power): pin the tuned profile per host, cap the VM hosts (#458)

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-16 00:42:48 +08:00
1 parent 65f1c8e306
commit b4b293ebfa
6 files changed
+41 -21

No files matched your search

+5 -2
View File
@@ -21,8 +21,11 @@ in
# disable sunshine for security
services.sunshine.enable = lib.mkForce false;
# battery-first: override the profile default
services.tuned.ppdSettings.main.default = lib.mkForce "power-saver";
# battery-first: pin the low-power profile. apple-cpufreq exposes no EPP or
# platform_profile, so the only thing this changes is cpufreq boost.
services.tuned.recommend = {
powersave = { };
};
# Laptop joins untrusted networks and is never scraped (see youko's
# `offlineHosts`); don't expose :9100, and don't keep the smartctl exporter