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"; }; + }]; }