mirror of
https://github.com/dali99/nixos-matrix-modules.git
synced 2026-06-25 01:14:37 +02:00
synapse: add some defaults for database configuration
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user