summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2023-11-04 12:27:38 +0100
committerGitHub <noreply@github.com>2023-11-04 12:27:38 +0100
commit845cf9943ca0d2dff6713b47f92912dc91520c7c (patch)
tree1ef873baab923faf5b7d55965d5698491495b704 /nixos/modules
parent9d5d25bbfe8c0297ebe85324addcb5020ed1a454 (diff)
parent1391725fb5ae8458a4224e58b8206c03f21e881c (diff)
Merge pull request #264582 from FliegendeWurst/throttled-modprobe
nixos/throttled: load required kernel module
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/hardware/throttled.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/throttled.nix b/nixos/modules/services/hardware/throttled.nix
index 9fa495886119..0f1f00348ee8 100644
--- a/nixos/modules/services/hardware/throttled.nix
+++ b/nixos/modules/services/hardware/throttled.nix
@@ -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 =