mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 13:31:53 -05:00
20 lines
407 B
Nix
20 lines
407 B
Nix
# 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";
|
|
}
|