From 48ab7eb8a663d668e7b6fae9e0b47099be44742d Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Thu, 18 Sep 2025 10:47:08 +0200 Subject: [PATCH] . --- clanServices/zitadel/default.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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;