refactor: cloudflared

This commit is contained in:
arcnmx 2024-01-13 13:49:42 -08:00
parent d87b210c46
commit 859d60cd81
3 changed files with 61 additions and 21 deletions

View file

@ -4,6 +4,7 @@
inherit (lib.modules) mkIf mkMerge mkForce;
inherit (lib.options) mkOption mkEnableOption;
cfg = config.services.cloudflared;
settingsFormat = pkgs.formats.json { };
in {
options.services.cloudflared = with lib.types; {
tunnels = let
@ -14,7 +15,7 @@ in {
default = config.extraTunnel.ingress != { };
};
ingress = mkOption {
type = attrs;
inherit (settingsFormat) type;
default = { };
};
};