diff --git a/modules/server/containers/apps/immich.nix b/modules/server/containers/apps/immich.nix index 4bac63d..0baf6b2 100644 --- a/modules/server/containers/apps/immich.nix +++ b/modules/server/containers/apps/immich.nix @@ -12,7 +12,6 @@ in { mode = "0750"; }{ path = "${serverCfg.dataPath}/immich/"; - owner = "1000:1000"; mode = "0755"; }]; @@ -58,6 +57,8 @@ in { $PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS vchord CASCADE;" $PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE;" + mkdir -p ${serverCfg.dataPath}/immich/{upload,library,thumbs,encoded-video,profile,backups} + IMMICH_URL="https://${containerCfg.subdomain}.${serverCfg.domain}" until [[ "$(${pkgs.curl}/bin/curl -s -o /dev/null -w "%{http_code}" "$IMMICH_URL")" =~ (200|301|302) ]]; do sleep 5