mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/throttled: load required kernel module
This commit is contained in:
parent
ccd110837b
commit
1391725fb5
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ in {
|
||||||
then pkgs.writeText "throttled.conf" cfg.extraConfig
|
then pkgs.writeText "throttled.conf" cfg.extraConfig
|
||||||
else "${pkgs.throttled}/etc/throttled.conf";
|
else "${pkgs.throttled}/etc/throttled.conf";
|
||||||
|
|
||||||
|
hardware.cpu.x86.msr.enable = true;
|
||||||
# Kernel 5.9 spams warnings whenever userspace writes to CPU MSRs.
|
# Kernel 5.9 spams warnings whenever userspace writes to CPU MSRs.
|
||||||
# See https://github.com/erpalma/throttled/issues/215
|
# See https://github.com/erpalma/throttled/issues/215
|
||||||
hardware.cpu.x86.msr.settings.allow-writes =
|
hardware.cpu.x86.msr.settings.allow-writes =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue