AmdCpu : Disable powersave by default.

This commit is contained in:
Dmitry Voronin 2024-08-24 20:06:51 +03:00
parent 32a4e80028
commit 6e6003c5cb
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 12 additions and 9 deletions

View file

@ -18,8 +18,11 @@
virtmanager.enable = true;
amd = {
compute.enable = true;
cpu.enable = true;
gpu.enable = true;
cpu = {
enable = true;
powersave = true;
};
};
docker = {
enable = true;

View file

@ -18,10 +18,7 @@
builder.server.enable = true;
desktop.sway.enable = true;
amd = {
cpu = {
enable = true;
powersave.enable = false;
};
cpu.enable = true;
gpu.enable = true;
};
ftpd = {

View file

@ -19,7 +19,10 @@
tablet.enable = true;
amd = {
compute.enable = true;
cpu.enable = true;
cpu = {
enable = true;
powersave = true;
};
gpu.enable = true;
};
package = {

View file

@ -7,8 +7,8 @@
in {
options = {
module.amd.cpu = {
enable = mkEnableOption "Enable AMD Cpu support.";
powersave.enable = mkEnableOption "Enable AMD Cpu powersave." // { default = true; };
enable = mkEnableOption "Enable AMD Cpu support.";
powersave = mkEnableOption "Enable AMD Cpu powersave.";
};
};
@ -17,7 +17,7 @@ in {
boot.kernelModules = [ "kvm-amd" ];
hardware.cpu.amd.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
}
(mkIf cfg.powersave.enable {
(mkIf cfg.powersave {
module.powersave = {
enable = true;
cpu.boost = { inherit controlFile enableCmd disableCmd; };