Files
nix-config/common/boot/firmware.nix
2023-04-04 23:30:28 -06:00

19 lines
333 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.firmware;
in
{
options.firmware.x86_64 = {
enable = mkEnableOption "enable x86_64 firmware";
};
config = mkIf cfg.x86_64.enable {
hardware.cpu.intel.updateMicrocode = true;
hardware.cpu.amd.updateMicrocode = true;
};
# services.fwupd.enable = true;
}