1 { config, lib, pkgs, ... }:
6 hardware.cpu.amd.updateMicrocode = lib.mkOption {
10 Update the CPU microcode for AMD processors.
17 config = lib.mkIf config.hardware.cpu.amd.updateMicrocode {
18 # Microcode updates must be the first item prepended in the initrd
19 boot.initrd.prepend = lib.mkOrder 1 [ "${pkgs.microcode-amd}/amd-ucode.img" ];