services.postgresql.initialScript
NixOS option
A file containing SQL statements to execute on first startup.
type: null or absolute pathDefault
null
Example
declared in: nixos/modules/services/databases/postgresql.nixView source on NixOS/nixpkgs →pkgs.writeText "init-sql-script" '' alter user postgres with password 'myPassword'; '';