mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
refactor: cloudflared
This commit is contained in:
parent
d87b210c46
commit
859d60cd81
3 changed files with 61 additions and 21 deletions
|
|
@ -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 = { };
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue