hwModuled/amd/cpu: switch to zenpower

This commit is contained in:
Aly Raffauf 2024-10-20 16:28:12 -04:00
parent 71ca578f61
commit d3b15959ce
2 changed files with 27 additions and 21 deletions

View file

@ -1,5 +1,19 @@
{lib, ...}: {
boot.kernelModules = ["kvm-amd"];
# 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";
}

View file

@ -22,9 +22,7 @@ in {
];
boot = {
initrd = {
availableKernelModules = [
"amdgpu"
initrd.availableKernelModules = [
"nvme"
"rtsx_pci_sdmmc"
"sd_mod"
@ -35,11 +33,7 @@ in {
"xhci_pci"
];
kernelModules = ["amdgpu"];
};
blacklistedKernelModules = ["k10temp"]; # Conflicts with zenpower
extraModulePackages = with config.boot.kernelPackages; [acpi_call zenpower];
extraModulePackages = with config.boot.kernelPackages; [acpi_call];
kernel.sysctl = {
# Improved file monitoring
@ -67,8 +61,6 @@ in {
"vm.watermark_scale_factor" = 125;
};
kernelModules = ["zenpower"]; # Improved temperature monitoring
# Xanmod seems more responsive under load
kernelPackages = lib.mkDefault pkgs.linuxPackages_xanmod_latest;
};