15 lines
499 B
Nix
15 lines
499 B
Nix
{ pkgs, ... }: {
|
|
# 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 30000 --fast-limit 30000 --slow-limit 30000 --slow-time 60 --stapm-time 1000 --tctl-temp 80 --vrmmax-current 50000
|
|
'');
|
|
};
|
|
wantedBy = [ "default.target" ];
|
|
};
|
|
}
|