diff options
author | Profpatsch <mail@profpatsch.de> | 2022-06-26 18:26:54 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2022-06-26 18:52:37 +0200 |
commit | d7c905b69020a46e8f549ae86b77eb884f89ed68 (patch) | |
tree | c56c1d67fd1d4f647670e93bd81e718b6fb671d6 | |
parent | 8cfd13c077ea127423dd2122ca6404ce039076b6 (diff) |
modules/hardware/thinkpad: Default intel.updateMicrocode to true
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.
-rw-r--r-- | machines/profpatsch/base-workstation.nix | 5 | ||||
-rw-r--r-- | modules/hardware/thinkpad.nix | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/machines/profpatsch/base-workstation.nix b/machines/profpatsch/base-workstation.nix index a48c18b4..d8deeb62 100644 --- a/machines/profpatsch/base-workstation.nix +++ b/machines/profpatsch/base-workstation.nix @@ -14,11 +14,6 @@ in { config = { - ########### - # Hardware - - hardware.cpu.intel.updateMicrocode = true; - networking = { # better for untrusted networks firewall = { 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 ]; |