diff options
author | Aleksana <me@aleksana.moe> | 2024-04-12 00:15:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 00:15:45 +0800 |
commit | 029c95c7809cea37cb2016e10c8601a1cf5c59bd (patch) | |
tree | 26b768292bc1e2d5622df9ac1e00baeb4c09d7ef /nixos/modules/hardware | |
parent | 03b8fd0d9b38defb4610e2b76c4c8e3d98caf4a2 (diff) | |
parent | 97899b5ba66be56998c7520b44b9710b1686706f (diff) |
Merge pull request #271342 from PhDyellow/ryzen_smu
ryzen_smu: init at 0.1.5, ryzen_monitor_ng: init at 2.0.5
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/cpu/amd-ryzen-smu.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/hardware/cpu/amd-ryzen-smu.nix b/nixos/modules/hardware/cpu/amd-ryzen-smu.nix new file mode 100644 index 000000000000..b1a5895aaa24 --- /dev/null +++ b/nixos/modules/hardware/cpu/amd-ryzen-smu.nix @@ -0,0 +1,26 @@ +{ config +, lib +, ... +}: +let + inherit (lib) mkEnableOption mkIf; + cfg = config.hardware.cpu.amd.ryzen-smu; + ryzen-smu = config.boot.kernelPackages.ryzen-smu; +in +{ + options.hardware.cpu.amd.ryzen-smu = { + enable = mkEnableOption '' + ryzen_smu, a linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors. + + 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 + ''; + }; + + config = mkIf cfg.enable { + boot.kernelModules = [ "ryzen-smu" ]; + boot.extraModulePackages = [ ryzen-smu ]; + environment.systemPackages = [ ryzen-smu ]; + }; + + meta.maintainers = with lib.maintainers; [ Cryolitia phdyellow ]; +} |