6 inherit (lib) mkEnableOption mkIf;
7 cfg = config.hardware.cpu.amd.ryzen-smu;
8 ryzen-smu = config.boot.kernelPackages.ryzen-smu;
11 options.hardware.cpu.amd.ryzen-smu = {
12 enable = mkEnableOption ''
13 ryzen_smu, a linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors.
15 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
19 config = mkIf cfg.enable {
20 boot.kernelModules = [ "ryzen-smu" ];
21 boot.extraModulePackages = [ ryzen-smu ];
22 environment.systemPackages = [ ryzen-smu ];
25 meta.maintainers = with lib.maintainers; [ Cryolitia phdyellow ];