summary refs log tree commit diff
path: root/nixos/modules/hardware/cpu/intel-microcode.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/hardware/cpu/intel-microcode.nix')
-rw-r--r--nixos/modules/hardware/cpu/intel-microcode.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/hardware/cpu/intel-microcode.nix b/nixos/modules/hardware/cpu/intel-microcode.nix
index 89ae4f45806..acce565fd80 100644
--- a/nixos/modules/hardware/cpu/intel-microcode.nix
+++ b/nixos/modules/hardware/cpu/intel-microcode.nix
@@ -22,7 +22,8 @@ with lib;
   ###### implementation
 
   config = mkIf config.hardware.cpu.intel.updateMicrocode {
-    boot.initrd.prepend = [ "${pkgs.microcodeIntel}/intel-ucode.img" ];
+    # Microcode updates must be the first item prepended in the initrd
+    boot.initrd.prepend = mkOrder 1 [ "${pkgs.microcodeIntel}/intel-ucode.img" ];
   };
 
 }