diff --git a/flake.nix b/flake.nix index e22e08f7a..808b48d93 100644 --- a/flake.nix +++ b/flake.nix @@ -162,7 +162,11 @@ text = '' cat ${mobilizonConfig} > config/runtime.exs # We assume the database already exists - sudo -u postgres psql -d mobilizon -c "create extension if not exists postgis; create extension if not exists unaccent; create extension if not exists pg_trgm;" + sudo -u postgres psql -d mobilizon << SQL + create extension if not exists postgis; + create extension if not exists unaccent; + create extension if not exists pg_trgm; + SQL mix ecto.migrate ''; })