MyNixOS website logo
option

services.postgresql.initialScript

A file containing SQL statements to execute on first startup.

Declarations
Type
null or path
Default
null
Example
pkgs.writeText "init-sql-script" ''
  alter user postgres with password 'myPassword';
'';