From 7a4243b90aa58f75a1e6469d8a581cd13849de8a Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 29 Jun 2023 22:01:07 +0200 Subject: [PATCH] [Hardware/AMD] Automatically enable AMD Cluster ID patch when using Ryzen cpus --- hardware/amd/cpu.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hardware/amd/cpu.nix b/hardware/amd/cpu.nix index 29d9a2a..0dc264b 100644 --- a/hardware/amd/cpu.nix +++ b/hardware/amd/cpu.nix @@ -27,6 +27,10 @@ in { "amd_pstate.shared_memory" = 1; }; + aviallon.boot.patches = mkIf config.aviallon.optimizations.enable { + amdClusterId.enable = mkIf cpuIsZen true; + }; + boot.extraModulePackages = with config.boot.kernelPackages; [] ++ optional cpuIsZen (info "enable zenpower for Ryzen CPU" zenpower) ;