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 = {