mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Hardware/AMD] Automatically enable AMD Cluster ID patch when using Ryzen cpus
This commit is contained in:
parent
902ef0a522
commit
7a4243b90a
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue