niksos/hosts/common/optional/cpu/amd.nix

17 lines
483 B
Nix
Raw Normal View History

2024-09-01 23:31:57 +02:00
{
config,
...
}: {
2024-02-15 17:04:34 +01:00
hardware.cpu.amd.updateMicrocode = true;
2024-09-01 23:31:57 +02:00
boot = {
# https://github.com/NixOS/nixos-hardware/blob/master/common/cpu/amd/pstate.nix
kernelParams = [ "amd_pstate=active" ];
2024-09-01 23:31:57 +02:00
# https://github.com/NixOS/nixos-hardware/blob/master/common/cpu/amd/zenpower.nix
blacklistedKernelModules = [ "k10temp" ];
extraModulePackages = [ config.boot.kernelPackages.zenpower ];
kernelModules = [ "zenpower" ];
};
2024-02-15 17:04:34 +01:00
}