IntelCpu : Disable powersave by default.

This commit is contained in:
Dmitry Voronin 2024-08-24 20:09:18 +03:00
parent d0a4314338
commit 067c215640
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 11 additions and 5 deletions

View file

@ -14,7 +14,10 @@
amd.gpu.enable = true; amd.gpu.enable = true;
builder.client.enable = true; builder.client.enable = true;
desktop.sway.enable = true; desktop.sway.enable = true;
intel.cpu.enable = true; intel.cpu = {
enable = true;
powersave = true;
};
print.enable = true; print.enable = true;
strongswan.enable = true; strongswan.enable = true;
tablet.enable = true; tablet.enable = true;

View file

@ -16,7 +16,10 @@
autoupdate.enable = true; autoupdate.enable = true;
builder.client.enable = true; builder.client.enable = true;
desktop.sway.enable = true; desktop.sway.enable = true;
intel.cpu.enable = true; intel.cpu = {
enable = true;
powersave = true;
};
powerlimit.thinkpad.enable = true; powerlimit.thinkpad.enable = true;
print.enable = true; print.enable = true;
package = { package = {

View file

@ -9,7 +9,7 @@ in {
options = { options = {
module.intel.cpu = { module.intel.cpu = {
enable = mkEnableOption "Support for Shintel CPUs"; enable = mkEnableOption "Support for Shintel CPUs";
powersave.enable = mkEnableOption "Enable Shintel Cpu powersave." // { default = true; }; powersave = mkEnableOption "Enable Shintel Cpu powersave.";
}; };
}; };
@ -17,7 +17,7 @@ in {
{ {
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
} }
(mkIf cfg.powersave.enable { (mkIf cfg.powersave {
module.powersave = { module.powersave = {
enable = true; enable = true;
cpu.boost = { inherit controlFile enableCmd disableCmd; }; cpu.boost = { inherit controlFile enableCmd disableCmd; };