Add missing extensions
This commit is contained in:
@@ -47,8 +47,8 @@ in {
|
|||||||
trigger = "server";
|
trigger = "server";
|
||||||
script = pkgs.writeShellScript "setup" ''
|
script = pkgs.writeShellScript "setup" ''
|
||||||
PSQL="${pkgs.postgresql}/bin/psql -U postgres"
|
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 vchord CASCADE;"
|
||||||
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance;"
|
$PSQL -d "immich_db" -tAc "CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE;"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -10,7 +10,7 @@ in {
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTCPIP = true;
|
enableTCPIP = true;
|
||||||
extensions = ps: with ps; [ pgvector pg_repack ];
|
extensions = ps: with ps; [ vectorchord pgvector ];
|
||||||
settings = {
|
settings = {
|
||||||
listen_addresses = lib.mkForce "*";
|
listen_addresses = lib.mkForce "*";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user