16 lines
378 B
Nix
16 lines
378 B
Nix
{ lib, config, ... }:
|
|
{
|
|
options.my.firmwareUpdates.enable = lib.mkEnableOption "firmware updates and microcode";
|
|
|
|
config = lib.mkIf config.my.firmwareUpdates.enable {
|
|
hardware = {
|
|
enableRedistributableFirmware = true;
|
|
cpu = {
|
|
amd.updateMicrocode = true;
|
|
intel.updateMicrocode = true;
|
|
};
|
|
};
|
|
|
|
services.fwupd.enable = true;
|
|
};
|
|
}
|