From 186a2e420271f90977b84536790fe53aea7255f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Tue, 18 Jan 2022 08:41:47 +0100 Subject: [PATCH] Add homepage database for chir.rs --- config/services/chir-rs.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/services/chir-rs.nix b/config/services/chir-rs.nix index 946ed157..c88fc529 100644 --- a/config/services/chir-rs.nix +++ b/config/services/chir-rs.nix @@ -19,4 +19,9 @@ proxyPass = "http://localhost:8621/api.chir.rs/"; }; }; + services.postgresql.ensureDatabases = [ "homepage" ]; + services.postgresql.ensureUsers = [{ + name = "homepage"; + ensurePermissions = { "DATABASE homepage" = "ALL PRIVILEGES"; }; + }]; }