From abe7b67f4807270367b1cec034455602258694e3 Mon Sep 17 00:00:00 2001 From: Pablo Fraile Alonso Date: Tue, 2 Jul 2024 08:43:39 +0200 Subject: [PATCH] fix: add default password for immich user --- modules/immich.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/immich.nix b/modules/immich.nix index dbba2da..3eee240 100644 --- a/modules/immich.nix +++ b/modules/immich.nix @@ -91,6 +91,9 @@ in with lib; { ensureDBOwnership = true; ensureClauses.login = true; } ]; + initialScript = pkgs.writeText "init-sql-script" '' + ALTER USER immich WITH PASSWORD 'password123'; + ''; extraPlugins = mkIf cfg.database.setupPgvectors (ps: with ps; [ pgvecto-rs ]); settings = mkIf cfg.database.setupPgvectors { shared_preload_libraries = [ "vectors.so" ];