Ryzenadj service

Set's my laptop's power usage settings to something a lot more manageable. When it comes to heat especially.
This commit is contained in:
CronyAkatsuki 2024-02-13 11:31:01 +01:00
parent 5d3f159065
commit c17ee12f9a

View File

@ -301,6 +301,20 @@
options = "--delete-older-than 15d"; options = "--delete-older-than 15d";
}; };
# Set power settings for my laptop cpu
systemd.services.ryzenadj = {
enable = true;
description = "Set my ryzen cpu power.";
serviceConfig = {
Type = "oneshot";
ExecStart = toString (
pkgs.writeShellScript "ryzenadj-setup" ''
${pkgs.ryzenadj}/bin/ryzenadj --stapm-limit 35000 --fast-limit 35000 --slow-limit 35000 --slow-time 60 --stapm-time 1000 --tctl-temp 75 --vrmmax-current 65000
'');
};
wantedBy = ["default.target"];
};
# DO NOT CHANGE # DO NOT CHANGE
system.stateVersion = "23.11"; system.stateVersion = "23.11";