fwminex: add throttled

This commit is contained in:
Motiejus Jakštys 2024-04-09 09:04:49 +03:00
parent a7b8b49e1a
commit 52acebc8ef

View File

@ -123,7 +123,24 @@ in {
}; };
}; };
services.autorandr = { services = {
throttled.enable = true;
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";
};
};
autorandr = {
profiles = { profiles = {
default = { default = {
fingerprint = {inherit (randr) eDP-1;}; fingerprint = {inherit (randr) eDP-1;};
@ -185,6 +202,7 @@ in {
}; };
}; };
}; };
};
virtualisation.virtualbox.host.enable = true; virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = ["motiejus"]; users.extraGroups.vboxusers.members = ["motiejus"];
@ -195,20 +213,4 @@ in {
domain = "motiejus.jakst"; domain = "motiejus.jakst";
firewall.rejectPackets = true; 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";
};
};
} }