From 285f92d2a2000db40651f66f38f5889d965ffba5 Mon Sep 17 00:00:00 2001 From: Jonas Gaffke Date: Tue, 6 Sep 2022 17:32:53 +0200 Subject: [PATCH] manual create postgres user for mediawiki --- modules/wiki.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/wiki.nix b/modules/wiki.nix index ed6ceb9..cf46619 100644 --- a/modules/wiki.nix +++ b/modules/wiki.nix @@ -26,6 +26,17 @@ }; postgresql = { enable = true; + ensureUsers = [ + { + name = "mediawiki"; + ensurePermissions = { + "DATABASE \"mediawiki\"" = "ALL PRIVILEGES"; + }; + } + ]; + ensureDatabases = [ + "mediawiki" + ]; }; }; systemd.services.mediawiki-pgsetup = {