From 8a095ef501a5a991c58f0c2600f6339e526a1c78 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 22 Jun 2026 15:21:37 +0900 Subject: [PATCH] synapse: add some defaults for database configuration --- synapse-module/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/synapse-module/default.nix b/synapse-module/default.nix index 0cd1098..db03d4c 100644 --- a/synapse-module/default.nix +++ b/synapse-module/default.nix @@ -288,6 +288,30 @@ in ]; }; + database.name = mkOption { + type = types.enum [ "psycopg2" ]; + default = "psycopg2"; + description = '' + The database engine name. Hardcoded to psycopg2, this module is not designed for use with sqlite. + ''; + }; + + database.args.database = mkOption { + type = types.str; + default = "matrix-synapse"; + description = '' + Name of the database. + ''; + }; + + database.args.user = mkOption { + type = types.nullOr types.str; + default = "matrix-synapse"; + description = '' + Username to use when connecting to postgresql. + ''; + }; + federation_ip_range_blacklist = mkOption { type = types.listOf types.str; description = ''