mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 05:53:56 -05:00
hwModuled/amd/cpu: switch to zenpower
This commit is contained in:
parent
71ca578f61
commit
d3b15959ce
|
@ -1,5 +1,19 @@
|
||||||
{lib, ...}: {
|
# Best for Ryzen CPUs
|
||||||
boot.kernelModules = ["kvm-amd"];
|
{
|
||||||
|
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;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,9 +22,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd = {
|
initrd.availableKernelModules = [
|
||||||
availableKernelModules = [
|
|
||||||
"amdgpu"
|
|
||||||
"nvme"
|
"nvme"
|
||||||
"rtsx_pci_sdmmc"
|
"rtsx_pci_sdmmc"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
|
@ -35,11 +33,7 @@ in {
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
];
|
];
|
||||||
|
|
||||||
kernelModules = ["amdgpu"];
|
extraModulePackages = with config.boot.kernelPackages; [acpi_call];
|
||||||
};
|
|
||||||
|
|
||||||
blacklistedKernelModules = ["k10temp"]; # Conflicts with zenpower
|
|
||||||
extraModulePackages = with config.boot.kernelPackages; [acpi_call zenpower];
|
|
||||||
|
|
||||||
kernel.sysctl = {
|
kernel.sysctl = {
|
||||||
# Improved file monitoring
|
# Improved file monitoring
|
||||||
|
@ -67,8 +61,6 @@ in {
|
||||||
"vm.watermark_scale_factor" = 125;
|
"vm.watermark_scale_factor" = 125;
|
||||||
};
|
};
|
||||||
|
|
||||||
kernelModules = ["zenpower"]; # Improved temperature monitoring
|
|
||||||
|
|
||||||
# Xanmod seems more responsive under load
|
# Xanmod seems more responsive under load
|
||||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_xanmod_latest;
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_xanmod_latest;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue