at 24.11-pre 873 B view raw
1{ config 2, lib 3, ... 4}: 5let 6 inherit (lib) mkEnableOption mkIf; 7 cfg = config.hardware.cpu.amd.ryzen-smu; 8 ryzen-smu = config.boot.kernelPackages.ryzen-smu; 9in 10{ 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. 14 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 16 ''; 17 }; 18 19 config = mkIf cfg.enable { 20 boot.kernelModules = [ "ryzen-smu" ]; 21 boot.extraModulePackages = [ ryzen-smu ]; 22 environment.systemPackages = [ ryzen-smu ]; 23 }; 24 25 meta.maintainers = with lib.maintainers; [ Cryolitia phdyellow ]; 26}