fwminex: some power settings
Thanks to https://kirarin.hootr.club/git/steinuil/flakes/src/branch/master/configuration/starry.nix
This commit is contained in:
@@ -44,7 +44,11 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
powerManagement = {
|
||||
cpuFreqGovernor = "powersave";
|
||||
powertop.enable = true;
|
||||
};
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
@@ -166,4 +170,20 @@ in {
|
||||
domain = "motiejus.jakst";
|
||||
firewall.rejectPackets = true;
|
||||
};
|
||||
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_BOOST_ON_BAT = 0;
|
||||
CPU_HWP_DYN_BOOST_ON_BAT = 0;
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||
START_CHARGE_THRESH_BAT1 = 90;
|
||||
STOP_CHARGE_THRESH_BAT1 = 97;
|
||||
RUNTIME_PM_ON_BAT = "auto";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user