diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index b67bbc0..5f09266 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -301,6 +301,20 @@ 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 system.stateVersion = "23.11";