Max: Limix tctl to 50 degrees.
This commit is contained in:
parent
0fa52dbd18
commit
132e4122cd
|
@ -2,7 +2,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
hardware.cpu.amd.ryzen-smu.enable = true;
|
# hardware.cpu.amd.ryzen-smu.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# SRC: https://github.com/FlyGoat/RyzenAdj
|
# SRC: https://github.com/FlyGoat/RyzenAdj
|
||||||
|
@ -13,4 +13,21 @@
|
||||||
# SRC: https://github.com/nbfc-linux/nbfc-linux
|
# SRC: https://github.com/nbfc-linux/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
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue