Max: Limix tctl to 50 degrees.

This commit is contained in:
Dmitry Voronin 2024-12-11 10:39:21 +03:00
parent 0fa52dbd18
commit 132e4122cd
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -2,7 +2,7 @@
pkgs,
...
}: {
hardware.cpu.amd.ryzen-smu.enable = true;
# hardware.cpu.amd.ryzen-smu.enable = true;
environment.systemPackages = with pkgs; [
# SRC: https://github.com/FlyGoat/RyzenAdj
@ -13,4 +13,21 @@
# SRC: https://github.com/nbfc-linux/nbfc-linux
nbfc-linux
];
systemd.services.radj = {
enable = true;
description = "Ryzen Adj temperature limiter.";
serviceConfig.Type = "simple";
wantedBy = [ "multi-user.target" ];
path = with pkgs; [
coreutils
ryzenadj
];
script = ''
while true; do
ryzenadj --tctl-temp=50
sleep 60
done
'';
};
}