Add missing extensions

This commit is contained in:
soraefir
2026-05-15 00:22:56 +02:00
parent 08a7ed2469
commit d57fb32f67
2 changed files with 3 additions and 3 deletions

View File

@@ -47,8 +47,8 @@ in {
trigger = "server";
script = pkgs.writeShellScript "setup" ''
PSQL="${pkgs.postgresql}/bin/psql -U postgres"
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS vector;"
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance;"
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS vchord CASCADE;"
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE;"
'';
};
}

View File

@@ -10,7 +10,7 @@ in {
services.postgresql = {
enable = true;
enableTCPIP = true;
extensions = ps: with ps; [ pgvector pg_repack ];
extensions = ps: with ps; [ vectorchord pgvector ];
settings = {
listen_addresses = lib.mkForce "*";
};