7 inherit (lib) mkEnableOption mkPackageOption mkIf;
8 cfg = config.programs.ryzen-monitor-ng;
12 programs.ryzen-monitor-ng = {
13 enable = mkEnableOption ''
14 ryzen_monitor_ng, a userspace application for setting and getting Ryzen SMU (System Management Unit) parameters via the ryzen_smu kernel driver.
16 Monitor power information of Ryzen processors via the PM table of the SMU.
18 SMU Set and Get for many parameters and CO counts.
20 https://github.com/mann1x/ryzen_monitor_ng
22 WARNING: Damage cause by use of your AMD processor outside of official AMD specifications or outside of factory settings are not covered under any AMD product warranty and may not be covered by your board or system manufacturer's warranty
25 package = mkPackageOption pkgs "ryzen-monitor-ng" {};
29 config = mkIf cfg.enable {
30 environment.systemPackages = [ cfg.package ];
31 hardware.cpu.amd.ryzen-smu.enable = true;
34 meta.maintainers = with lib.maintainers; [ Cryolitia phdyellow ];