nixos/throttled: Use hardware.cpu.x86.msr

This commit is contained in:
Lorenz Leutgeb 2023-10-16 21:33:22 +02:00
parent a98c933412
commit b893b67028

View File

@ -29,8 +29,7 @@ in {
# Kernel 5.9 spams warnings whenever userspace writes to CPU MSRs.
# See https://github.com/erpalma/throttled/issues/215
boot.kernelParams =
optional (versionAtLeast config.boot.kernelPackages.kernel.version "5.9")
"msr.allow_writes=on";
hardware.cpu.x86.msr.settings.allow-writes =
mkIf (versionAtLeast config.boot.kernelPackages.kernel.version "5.9") "on";
};
}