Add DB init script to create PostGIS extension
This commit is contained in:
parent
ed76912f4b
commit
dd66f172cd
1 changed files with 5 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue