diff --git a/clanServices/zitadel/default.nix b/clanServices/zitadel/default.nix index a74303d..43339ca 100644 --- a/clanServices/zitadel/default.nix +++ b/clanServices/zitadel/default.nix @@ -1,6 +1,7 @@ { lib, pkgs, ... }: let inherit (builtins) readFile; + inherit (lib) mkOption types; in { _class = "clan.service"; @@ -17,7 +18,23 @@ in #============================================================================================================== roles.controller = { interface = { - options = {}; + options = { + hostName = mkOption { + type = types.str; + example = "auth.example.com"; + description = '' + The domain at which zitadel will be hosted + ''; + }; + + displayName = mkOption { + type = types.str; + example = "auth.example.com"; + description = '' + The Name of the zitadel organisation + ''; + }; + }; }; perInstance = { instanceName, settings, machine, roles, ... }: { @@ -47,7 +64,7 @@ in settings = { Port = 9092; - ExternalDomain = "auth.amarth.cloud"; + ExternalDomain = settings.hostName; ExternalPort = 443; ExternalSecure = true;