diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-24 21:20:44 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-24 21:20:44 +0100 |
| commit | a3a98ec3f2ea88bafccd4a9a7a3720a7ddcd4a54 (patch) | |
| tree | 81c528fa3b1001eabbab0f95f4c6ff2b0f8a4d95 /hosts/surtr/postgres.nix | |
| parent | 522c8a27dbde0d337c40aa05597c43df05f5ff8f (diff) | |
| download | nixos-a3a98ec3f2ea88bafccd4a9a7a3720a7ddcd4a54.tar nixos-a3a98ec3f2ea88bafccd4a9a7a3720a7ddcd4a54.tar.gz nixos-a3a98ec3f2ea88bafccd4a9a7a3720a7ddcd4a54.tar.bz2 nixos-a3a98ec3f2ea88bafccd4a9a7a3720a7ddcd4a54.tar.xz nixos-a3a98ec3f2ea88bafccd4a9a7a3720a7ddcd4a54.zip | |
surtr: synapse.li: ...
Diffstat (limited to 'hosts/surtr/postgres.nix')
| -rw-r--r-- | hosts/surtr/postgres.nix | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/hosts/surtr/postgres.nix b/hosts/surtr/postgres.nix deleted file mode 100644 index e8ea73be..00000000 --- a/hosts/surtr/postgres.nix +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | { pkgs, ... }: | ||
| 2 | { | ||
| 3 | config = { | ||
| 4 | services.postgresql = { | ||
| 5 | enable = true; | ||
| 6 | package = pkgs.postgresql_14; | ||
| 7 | ensureDatabases = [ | ||
| 8 | "matrix-synapse" | ||
| 9 | ]; | ||
| 10 | ensureUsers = [ | ||
| 11 | { name = "matrix-synapse"; | ||
| 12 | ensurePermissions = { | ||
| 13 | "DATABASE \"matrix-synapse\"" = "ALL PRIVILEGES"; | ||
| 14 | "ALL TABLES IN SCHEMA public" = "ALL PRIVILEGES"; | ||
| 15 | }; | ||
| 16 | } | ||
| 17 | ]; | ||
| 18 | }; | ||
| 19 | }; | ||
| 20 | } | ||
