From 74d6e86ec2513aeb7624dd7a9fc731b635cd9d82 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 16 Apr 2020 11:37:36 +0200 Subject: [PATCH] nixos/doc: fix database-setup example for matrix-synapse Closes #85327 --- nixos/modules/services/misc/matrix-synapse.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/matrix-synapse.xml b/nixos/modules/services/misc/matrix-synapse.xml index 053a3b2a563..2f2ac27eeb9 100644 --- a/nixos/modules/services/misc/matrix-synapse.xml +++ b/nixos/modules/services/misc/matrix-synapse.xml @@ -33,6 +33,7 @@ installation instructions of Synapse . +{ pkgs, ... }: let fqdn = let @@ -46,7 +47,7 @@ in { networking.firewall.allowedTCPPorts = [ 80 443 ]; services.postgresql.enable = true; - services.postgresql.initialScript = '' + services.postgresql.initialScript = pkgs.writeText "synapse-init.sql" '' CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse'; CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse" TEMPLATE template0