services.postgresql.initialScript
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
- <nixpkgs/nixos/modules/services/databases/postgresql.nix>