services.postgres: add initialScript example

This commit is contained in:
Matthieu Coudron 2023-08-17 20:18:45 +02:00
parent 956a1876aa
commit b53c715e50

View File

@ -130,6 +130,11 @@ in
initialScript = mkOption {
type = types.nullOr types.path;
default = null;
example = literalExpression ''
pkgs.writeText "init-sql-script" '''
alter user postgres with password 'myPassword';
''';'';
description = lib.mdDoc ''
A file containing SQL statements to execute on first startup.
'';