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;
builder.client.enable = true;
desktop.sway.enable = true;
intel.cpu.enable = true;
intel.cpu = {
enable = true;
powersave = true;
};
print.enable = true;
strongswan.enable = true;
tablet.enable = true;

View file

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

View file

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