summary refs log tree commit diff
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
parent9d5d25bbfe8c0297ebe85324addcb5020ed1a454 (diff)
parent1391725fb5ae8458a4224e58b8206c03f21e881c (diff)
downloadnixpkgs-845cf9943ca0d2dff6713b47f92912dc91520c7c.tar
nixpkgs-845cf9943ca0d2dff6713b47f92912dc91520c7c.tar.gz
nixpkgs-845cf9943ca0d2dff6713b47f92912dc91520c7c.tar.bz2
nixpkgs-845cf9943ca0d2dff6713b47f92912dc91520c7c.tar.lz
nixpkgs-845cf9943ca0d2dff6713b47f92912dc91520c7c.tar.xz
nixpkgs-845cf9943ca0d2dff6713b47f92912dc91520c7c.tar.zst
nixpkgs-845cf9943ca0d2dff6713b47f92912dc91520c7c.zip
Merge pull request #264582 from FliegendeWurst/throttled-modprobe
nixos/throttled: load required kernel module
-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 9fa49588611..0f1f00348ee 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 =