summaryrefslogtreecommitdiff
path: root/hosts/surtr/postgresql.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-25 13:42:02 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-25 13:42:02 +0100
commitb4293d801ec6d4d3e92f67afb95fc919bdbf9a2e (patch)
tree8c98ec1c5671defc7c283c65ce97ce1f46ec7595 /hosts/surtr/postgresql.nix
parent2f3dea9b282a991808243c1775851231776ac89b (diff)
downloadnixos-b4293d801ec6d4d3e92f67afb95fc919bdbf9a2e.tar
nixos-b4293d801ec6d4d3e92f67afb95fc919bdbf9a2e.tar.gz
nixos-b4293d801ec6d4d3e92f67afb95fc919bdbf9a2e.tar.bz2
nixos-b4293d801ec6d4d3e92f67afb95fc919bdbf9a2e.tar.xz
nixos-b4293d801ec6d4d3e92f67afb95fc919bdbf9a2e.zip
surtr: matrix: ma1sd
Diffstat (limited to 'hosts/surtr/postgresql.nix')
-rw-r--r--hosts/surtr/postgresql.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/surtr/postgresql.nix b/hosts/surtr/postgresql.nix
index a34bc675..88430823 100644
--- a/hosts/surtr/postgresql.nix
+++ b/hosts/surtr/postgresql.nix
@@ -9,6 +9,11 @@
9 CREATE USER "matrix-synapse"; 9 CREATE USER "matrix-synapse";
10 GRANT ALL PRIVILEGES ON DATABASE "matrix-synapse" TO "matrix-synapse"; 10 GRANT ALL PRIVILEGES ON DATABASE "matrix-synapse" TO "matrix-synapse";
11 GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "matrix-synapse"; 11 GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "matrix-synapse";
12
13 CREATE DATABASE "ma1sd" WITH TEMPLATE "template0" ENCODING "UTF8" LOCALE "C";
14 CREATE USER "ma1sd";
15 GRANT ALL PRIVILEGES ON DATABASE "ma1sd" TO "ma1sd";
16 GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "ma1sd";
12 ''; 17 '';
13 }; 18 };
14 }; 19 };