From b70a63a910e6c2b859a4b2958f0cf9be75120ead Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Mon, 16 Oct 2023 21:41:32 +0200 Subject: [PATCH] nixos/tlp: Use `hardware.cpu.x86.msr` --- nixos/modules/services/hardware/tlp.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.