diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 22:36:53 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 22:36:53 +0200 |
commit | 81a72b678b7ae5e68f6952082c75b3d7ce7536cd (patch) | |
tree | 1dd05c8efad84c61e3aacf2120fb0b31b2587fdf /hosts/surtr/postgresql.nix | |
parent | 75980d0b101facd15d823ff12bd7a80f00330102 (diff) | |
download | nixos-81a72b678b7ae5e68f6952082c75b3d7ce7536cd.tar nixos-81a72b678b7ae5e68f6952082c75b3d7ce7536cd.tar.gz nixos-81a72b678b7ae5e68f6952082c75b3d7ce7536cd.tar.bz2 nixos-81a72b678b7ae5e68f6952082c75b3d7ce7536cd.tar.xz nixos-81a72b678b7ae5e68f6952082c75b3d7ce7536cd.zip |
surtr: ...
Diffstat (limited to 'hosts/surtr/postgresql.nix')
-rw-r--r-- | hosts/surtr/postgresql.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/surtr/postgresql.nix b/hosts/surtr/postgresql.nix index 71fd6463..c1993431 100644 --- a/hosts/surtr/postgresql.nix +++ b/hosts/surtr/postgresql.nix | |||
@@ -15,10 +15,10 @@ in { | |||
15 | CREATE DATABASE "email" WITH TEMPLATE "template0" ENCODING "UTF8" LOCALE "C"; | 15 | CREATE DATABASE "email" WITH TEMPLATE "template0" ENCODING "UTF8" LOCALE "C"; |
16 | CREATE USER "postfix"; | 16 | CREATE USER "postfix"; |
17 | GRANT CONNECT ON DATABASE "email" TO "postfix"; | 17 | GRANT CONNECT ON DATABASE "email" TO "postfix"; |
18 | GRANT SELECT ON ALL TABLES IN SCHEMA public TO "postfix"; | 18 | ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO "postfix"; |
19 | CREATE USER "dovecot2"; | 19 | CREATE USER "dovecot2"; |
20 | GRANT CONNECT ON DATABASE "email" TO "dovecot2"; | 20 | GRANT CONNECT ON DATABASE "email" TO "dovecot2"; |
21 | GRANT SELECT ON ALL TABLES IN SCHEMA public TO "dovecot2"; | 21 | ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO "dovecot2"; |
22 | ''; | 22 | ''; |
23 | }; | 23 | }; |
24 | 24 | ||