From 9eab13b93ee65bddc6af68deafffdef6307efed2 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Wed, 10 Jul 2024 20:00:33 +0200 Subject: [PATCH] infra: add inital scripts --- nix/infra/backend.nix | 4 ++++ 1 file changed, 4 insertions(+) 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}'; + ''; }; }