diff --git a/nixos/programs/postgres.nix b/nixos/programs/postgres.nix index 9bfce6a..73716db 100644 --- a/nixos/programs/postgres.nix +++ b/nixos/programs/postgres.nix @@ -14,6 +14,15 @@ login = true; }; } + { + name = "nextcloud"; + ensurePermissions = { + "DATABASE nextcloud" = "ALL PRIVILEGES"; + }; + ensureClauses = { + login = true; + }; + } ]; identMap = '' # ArbitraryMapName systemUser DBUser