about summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
authorLorenz Leutgeb <lorenz@leutgeb.xyz>2023-10-16 21:41:32 +0200
committerLorenz Leutgeb <lorenz@leutgeb.xyz>2023-10-22 09:41:00 +0200
commitb70a63a910e6c2b859a4b2958f0cf9be75120ead (patch)
tree1bcc60372db2ea7b112da44857c3f52d5bf8909b /nixos/modules/services/hardware
parentb893b67028c00760bd0a5586eaa3183660f89dc2 (diff)
downloadnixlib-b70a63a910e6c2b859a4b2958f0cf9be75120ead.tar
nixlib-b70a63a910e6c2b859a4b2958f0cf9be75120ead.tar.gz
nixlib-b70a63a910e6c2b859a4b2958f0cf9be75120ead.tar.bz2
nixlib-b70a63a910e6c2b859a4b2958f0cf9be75120ead.tar.lz
nixlib-b70a63a910e6c2b859a4b2958f0cf9be75120ead.tar.xz
nixlib-b70a63a910e6c2b859a4b2958f0cf9be75120ead.tar.zst
nixlib-b70a63a910e6c2b859a4b2958f0cf9be75120ead.zip
nixos/tlp: Use `hardware.cpu.x86.msr`
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r--nixos/modules/services/hardware/tlp.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/tlp.nix b/nixos/modules/services/hardware/tlp.nix
index cad510e571cb..0b7f98ab6a6d 100644
--- a/nixos/modules/services/hardware/tlp.nix
+++ b/nixos/modules/services/hardware/tlp.nix
@@ -47,7 +47,7 @@ in
 
   ###### implementation
   config = mkIf cfg.enable {
-    boot.kernelModules = [ "msr" ];
+    hardware.cpu.x86.msr.enable = true;
 
     warnings = optional (cfg.extraConfig != "") ''
       Using config.services.tlp.extraConfig is deprecated and will become unsupported in a future release. Use config.services.tlp.settings instead.