mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds database for synapse
This commit is contained in:
parent
05a2f0a80f
commit
62773f907c
1 changed files with 16 additions and 5 deletions
|
|
@ -94,14 +94,25 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postgresql = {
|
||||||
|
enable = true;
|
||||||
|
initialScript = pkgs.writeText "synapse-init.sql" ''
|
||||||
|
CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
|
||||||
|
CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
|
||||||
|
TEMPLATE template0
|
||||||
|
LC_COLLATE = "C"
|
||||||
|
LC_CTYPE = "C";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
matrix-synapse = {
|
matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
# database.name = "psycopg2";
|
database.name = "matrix-synapse";
|
||||||
# database.args = {
|
database.args = {
|
||||||
# user = "matrix-synapse";
|
user = "matrix-synapse";
|
||||||
# password = "synapse";
|
password = "synapse";
|
||||||
# };
|
};
|
||||||
server_name = "${fqdn}";
|
server_name = "${fqdn}";
|
||||||
public_baseurl = "https://${fqdn}";
|
public_baseurl = "https://${fqdn}";
|
||||||
enable_registration = false;
|
enable_registration = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue