nixos/fwupd: add settings option for uefi_capsule.conf

This commit is contained in:
Lily Foster 2023-03-10 15:25:41 -05:00
parent 1e2590679d
commit 6e6d31f4bc
No known key found for this signature in database
GPG key ID: 49340081E484C893

View file

@ -18,6 +18,12 @@ let
fwupd = cfg.daemonSettings;
};
};
"fwupd/uefi_capsule.conf" = {
source = format.generate "uefi_capsule.conf" {
uefi_capsule = cfg.uefiCapsuleSettings;
};
};
};
originalEtc =
@ -138,6 +144,16 @@ in {
Configurations for the fwupd daemon.
'';
};
uefiCapsuleSettings = mkOption {
type = types.submodule {
freeformType = format.type.nestedTypes.elemType;
};
default = {};
description = lib.mdDoc ''
UEFI capsule configurations for the fwupd daemon.
'';
};
};
};