1
0
Fork 0
nix-config/modules/nixos/system/fwupd/default.nix
2025-06-20 15:45:16 +02:00

21 lines
318 B
Nix

{
config,
lib,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.system.fwupd;
in
{
options.${namespace}.system.fwupd = with types; {
enable = mkBoolOpt false "Whether or not to enable fwupd.";
};
config = mkIf cfg.enable {
services.fwupd.enable = true;
};
}