Add auto-cpufreq for power management.

This commit is contained in:
CronyAkatsuki 2025-01-30 12:23:59 +01:00
parent 11d7923b72
commit 38494003cc
3 changed files with 47 additions and 0 deletions

View file

@ -95,6 +95,23 @@
options = ["_netdev" "noauto" "x-systemd.automount" "x-systemd.mount-timeout=10" "timeo=14" "x-systemd.idle-timeout=600"];
};
# Setup auto-cpufreq
programs.auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
};
# Allow for wireguard traffic
networking.firewall = {
# if packets are still dropped, they will show up in dmesg