{ povSelf, hostConfig, config, lib, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath povSelf config; in { options = { updateMicrocode = { type = types.bool; default = false; }; }; config = lib.mkIf (cfg.updateMicrocode && (hostConfig.hardware.cpuVendor != null)) { hardware.cpu.${hostConfig.hardware.cpuVendor}.updateMicrocode = true; }; }