python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / modules / hardware / cpu / amd-microcode.nix
blob3f52cb1fca3e1386cab732ddc72a6ee494576a36
1 { config, lib, pkgs, ... }:
3 with lib;
7   ###### interface
9   options = {
11     hardware.cpu.amd.updateMicrocode = mkOption {
12       default = false;
13       type = types.bool;
14       description = lib.mdDoc ''
15         Update the CPU microcode for AMD processors.
16       '';
17     };
19   };
22   ###### implementation
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" ];
27   };