Expose more settings that werent exposed by default
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;
|