summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-09-22 20:14:14 +0200
committerRory& <root@rory.gay>2025-09-22 20:14:14 +0200
commit86b52a9ff6ac404d841f900d1ab4d4471ff6ca7d (patch)
treef5109bb880367d589ec60e119e292610d117a4c8
parentdoes this work? (diff)
downloadOOYE-module-86b52a9ff6ac404d841f900d1ab4d4471ff6ca7d.tar.xz
Add mapped setting for admin invites
-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; }; } );