db setup immich

This commit is contained in:
soraefir committed 2026-05-15 00:12:30 +02:00
1 parent 56252474d9
commit 45e375168e
2 files changed
+8 -1

No files matched your search

@@ -43,4 +43,12 @@ in {
};
};
setup = {
trigger = "server";
script = pkgs.writeShellScript "setup" ''
PSQL="${pkgs.postgresql}/bin/psql"
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS vector;"
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance;"
'';
};
}