IntelCpu : Disable powersave by default.
This commit is contained in:
parent
d0a4314338
commit
067c215640
|
@ -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;
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
in {
|
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; };
|
||||||
|
|
Loading…
Reference in a new issue