1 { config, lib, pkgs, ... }:
11 hardware.cpu.amd.updateMicrocode = mkOption {
14 description = lib.mdDoc ''
15 Update the CPU microcode for AMD processors.
24 config = mkIf config.hardware.cpu.amd.updateMicrocode {
25 # Microcode updates must be the first item prepended in the initrd
26 boot.initrd.prepend = mkOrder 1 [ "${pkgs.microcodeAmd}/amd-ucode.img" ];