summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--module.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/module.nix b/module.nix

index b70a1f5..dcec707 100644 --- a/module.nix +++ b/module.nix
@@ -30,6 +30,12 @@ in socket = mkStringOption "The socket to listen on, can either be a port number or a unix socket path." "6693"; bridgeOrigin = mkStringOption "The web frontend URL for the bridge, defaults to http://localhost:{socket}" ""; + admins = lib.mkOption { + type = lib.types.nullOr (lib.types.listOf lib.types.str); + default = null; + description = "If set, a list of Matrix users to invite as room admins."; + }; + debugPort = lib.mkOption { type = lib.types.nullOr lib.types.int; default = null; @@ -71,6 +77,7 @@ in include_user_id_in_mxid = true; server_origin = cfg.homeserver; bridge_origin = if (cfg.bridgeOrigin == "") then "http://localhost:${cfg.socket}" else cfg.bridgeOrigin; + invite = if (cfg.admins == null) then [] else cfg.admins; }; } );