niksos/hosts/common/optional/cpu/amd.nix
2024-09-01 23:31:57 +02:00

16 lines
483 B
Nix

{
config,
...
}: {
hardware.cpu.amd.updateMicrocode = true;
boot = {
# https://github.com/NixOS/nixos-hardware/blob/master/common/cpu/amd/pstate.nix
kernelParams = [ "amd_pstate=active" ];
# https://github.com/NixOS/nixos-hardware/blob/master/common/cpu/amd/zenpower.nix
blacklistedKernelModules = [ "k10temp" ];
extraModulePackages = [ config.boot.kernelPackages.zenpower ];
kernelModules = [ "zenpower" ];
};
}