nix/home/program/bash/module/Radj.nix

17 lines
314 B
Nix

{ ... }:
{
text = ''
# Adjust ryzen temp limit.
# Usage: radj [TEMP]
function radj() {
local limit="''${1}"
if [[ "''${limit}" = "" ]]; then
systemctl start radj.service
else
systemctl stop radj.service
ryzenadj --tctl-temp=''${limit}
fi
}
'';
}