services: matrix: configure DB on launch
This commit is contained in:
parent
303da60e0b
commit
6b1de02ea3
1 changed files with 7 additions and 0 deletions
|
|
@ -24,6 +24,13 @@ in
|
|||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_12;
|
||||
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";
|
||||
'';
|
||||
};
|
||||
|
||||
services.postgresqlBackup = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue