17 lines
332 B
Nix
17 lines
332 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;
|
|
} |