2026-05-01 22:39:21 +02:00
|
|
|
{ lib, config, ... }:
|
2025-09-14 14:12:14 +02:00
|
|
|
{
|
2026-05-01 22:39:21 +02:00
|
|
|
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;
|
|
|
|
|
};
|
2025-09-14 14:12:14 +02:00
|
|
|
};
|
|
|
|
|
|
2026-05-01 22:39:21 +02:00
|
|
|
services.fwupd.enable = true;
|
|
|
|
|
};
|
2025-09-14 14:12:14 +02:00
|
|
|
}
|