diff --git a/hosts/h001/containers/dawarich.nix b/hosts/h001/containers/dawarich.nix index ea70d61e..5398d5d3 100644 --- a/hosts/h001/containers/dawarich.nix +++ b/hosts/h001/containers/dawarich.nix @@ -182,6 +182,11 @@ in host all all fc00::1/128 trust ''; ensureDatabases = [ "dawarich" ]; + # Pre-create postgis extension as superuser (dawarich user can't create extensions) + initialScript = pkgs.writeText "dawarich-pg-init.sql" '' + \connect dawarich + CREATE EXTENSION IF NOT EXISTS postgis; + ''; ensureUsers = [ { name = "dawarich";