Merge pull request #264582 from FliegendeWurst/throttled-modprobe

nixos/throttled: load required kernel module
This commit is contained in:
Maximilian Bosch 2023-11-04 12:27:38 +01:00 committed by GitHub
commit 845cf9943c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ in {
then pkgs.writeText "throttled.conf" cfg.extraConfig
else "${pkgs.throttled}/etc/throttled.conf";
hardware.cpu.x86.msr.enable = true;
# Kernel 5.9 spams warnings whenever userspace writes to CPU MSRs.
# See https://github.com/erpalma/throttled/issues/215
hardware.cpu.x86.msr.settings.allow-writes =