From d7c905b69020a46e8f549ae86b77eb884f89ed68 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 26 Jun 2022 18:26:54 +0200 Subject: modules/hardware/thinkpad: Default intel.updateMicrocode to true MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not updating the microcode on thinkpads is kind of a death sentence for some kernel updates, so let’s do it by default. In case somebody uses it for an AMD thinkpad in the future, we might have to check whether the option creates a problem. --- modules/hardware/thinkpad.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules') diff --git a/modules/hardware/thinkpad.nix b/modules/hardware/thinkpad.nix index e4c1cd70..f296c5d6 100644 --- a/modules/hardware/thinkpad.nix +++ b/modules/hardware/thinkpad.nix @@ -12,6 +12,11 @@ in }; config = mkIf cfg.enable { + + # We need to update the Intel microcode on every update, + # otherwise there can be problems with newers kernels. + hardware.cpu.intel.updateMicrocode = mkDefault true; + # read acpi stats (e.g. battery) environment.systemPackages = [ pkgs.acpi ]; -- cgit 1.4.1