1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-07-04 18:33:27 +02:00
nixos-hardware/common/cpu/amd/pstate.nix
pasqui23 68a27c2b00
Clarify kernel version condition
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-08-01 12:03:29 +02:00

11 lines
404 B
Nix

{ lib, config, ... }: {
# Enables the amd cpu scaling https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html
# On recent AMD cupus this can be more energy efficient
imports = [ ./. ];
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "5.17") {
kernelParams = [ "initcall_blacklist=acpi_cpufreq_init" ];
kernelModules = [ "amd-pstate" ];
};
}