[Hardware/AMD] Automatically enable AMD Cluster ID patch when using Ryzen cpus

This commit is contained in:
Antoine Viallon 2023-06-29 22:01:07 +02:00
parent 902ef0a522
commit 7a4243b90a
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -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)
;