services.postgresql.initialScript

NixOS option

A file containing SQL statements to execute on first startup.

type: null or absolute path
Default
null
Example
pkgs.writeText "init-sql-script" ''
  alter user postgres with password 'myPassword';
'';
declared in: nixos/modules/services/databases/postgresql.nixView source on NixOS/nixpkgs →