diff --git a/nix/infra/backend.nix b/nix/infra/backend.nix index f142bae..42ef40e 100644 --- a/nix/infra/backend.nix +++ b/nix/infra/backend.nix @@ -35,5 +35,9 @@ in ensureDBOwnership = true; } ]; + initialScript = pkgs.writeText "init-sql-script" '' + alter user postgres with password 'postgres'; + alter user ${user} with password '${user}'; + ''; }; }