Add postgresql module
This commit is contained in:
@ -22,7 +22,7 @@ in {
|
||||
default = "vimium.com";
|
||||
example = "vimium.com";
|
||||
};
|
||||
usePostgres = lib.mkOption {
|
||||
usePostgresql = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
@ -129,7 +129,7 @@ in {
|
||||
services.matrix-synapse = {
|
||||
enable = true;
|
||||
settings = {
|
||||
database.name = (if cfg.usePostgres then "psycopg2" else "sqlite3");
|
||||
database.name = (if cfg.usePostgresql then "psycopg2" else "sqlite3");
|
||||
enable_metrics = false;
|
||||
enable_registration = false;
|
||||
max_upload_size = "100M";
|
||||
@ -138,7 +138,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
services.postgresql = lib.mkIf cfg.usePostgres {
|
||||
services.postgresql = lib.mkIf cfg.usePostgresql {
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "matrix-synapse";
|
||||
|
Reference in New Issue
Block a user