Skip to content

Commit

Permalink
nixos/doc: fix database-setup example for matrix-synapse
Browse files Browse the repository at this point in the history
Closes NixOS#85327

(cherry picked from commit 74d6e86)
  • Loading branch information
Ma27 authored and stigok committed Jun 12, 2020
1 parent b5e0c24 commit e74e387
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/services/misc/matrix-synapse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link xlink:href="https://github.com/matrix-org/synapse#synapse-installation">
installation instructions of Synapse </link>.
<programlisting>
{ pkgs, ... }:
let
fqdn =
let
Expand All @@ -46,7 +47,7 @@ in {
<link linkend="opt-networking.firewall.allowedTCPPorts">networking.firewall.allowedTCPPorts</link> = [ 80 443 ];

<link linkend="opt-services.postgresql.enable">services.postgresql.enable</link> = true;
<link linkend="opt-services.postgresql.initialScript">services.postgresql.initialScript</link> = ''
<link linkend="opt-services.postgresql.initialScript">services.postgresql.initialScript</link> = pkgs.writeText "synapse-init.sql" ''
CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
TEMPLATE template0
Expand Down

0 comments on commit e74e387

Please sign in to comment.