From 0aa8f199b1030ead80888390453a9e15f2067c5b Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 7 Feb 2024 15:46:06 -0800 Subject: [PATCH] Postgres uses different env vars --- immich-container.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/immich-container.nix b/immich-container.nix index c7c36e3..2beba84 100644 --- a/immich-container.nix +++ b/immich-container.nix @@ -59,9 +59,14 @@ in { fudo.secrets.host-secrets."${hostname}".immichEnv = { source-file = mkEnvFile { DB_HOSTNAME = "database"; - DB_USERNAME = "immich"; DB_DATABASE_NAME = "immich"; + DB_USERNAME = "immich"; DB_PASSWORD = readFile databasePassword; + + POSTGRES_DB = "immich"; + POSTGRES_USER = "immich"; + POSTGRES_PASSWORD = readFile databasePassword; + REDIS_HOSTNAME = "redis"; }; target-file = "/run/immich/env";