summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-13 19:28:13 +0100
committerRory& <root@rory.gay>2025-12-13 19:28:13 +0100
commitf6f3e4761e2b3454ec621b083df91369e4acecaf (patch)
treec6dea1431d35301043e825304aa8f39e88fdcb7e
parentOoye to 3.3-backports branch (diff)
downloadOOYE-module-f6f3e4761e2b3454ec621b083df91369e4acecaf.tar.xz
Expose more settings that werent exposed by default
-rw-r--r--module.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/module.nix b/module.nix

index 2a470df..c64329e 100644 --- a/module.nix +++ b/module.nix
@@ -48,6 +48,18 @@ in description = "If set, enables the Node.js inspector on the given port."; }; + maxFileSize = lib.mkOption { + type = lib.types.int; + default = 8192000; + description = "Max size of files to bridge. Defaults to 8MB." + }; + + exposeUserIds = lib.mkOption { + type = lib.types.bool; + default = true; + description = "Whether to put Discord user IDs in the mxids, ie. @_ooye_123123123_username:rory.gay" + }; + enableSynapseIntegration = lib.mkEnableOption "Enable Synapse integration"; }; }; @@ -78,9 +90,9 @@ in ooye = { server_name = cfg.homeserverName; namespace_prefix = cfg.namespace; - max_file_size = 5000000; + max_file_size = cfg.maxFileSize; content_length_workaround = false; - include_user_id_in_mxid = true; + include_user_id_in_mxid = cfg.exposeUserIds; 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;