nixcfg/hwModules/common/cpu/amd/default.nix

20 lines
407 B
Nix
Raw Normal View History

# Best for Ryzen CPUs
{
config,
lib,
...
}: {
boot = {
blacklistedKernelModules = ["k10temp"]; # Conflicts with zenpower
extraModulePackages = with config.boot.kernelPackages; [zenpower];
kernelModules = [
"kvm-amd"
"zenpower" # Improved temperature monitoring
];
};
hardware.cpu.amd.updateMicrocode = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}