services.postgres: add initialScript example
This commit is contained in:
@@ -130,6 +130,11 @@ in
|
|||||||
initialScript = mkOption {
|
initialScript = mkOption {
|
||||||
type = types.nullOr types.path;
|
type = types.nullOr types.path;
|
||||||
default = null;
|
default = null;
|
||||||
|
example = literalExpression ''
|
||||||
|
pkgs.writeText "init-sql-script" '''
|
||||||
|
alter user postgres with password 'myPassword';
|
||||||
|
''';'';
|
||||||
|
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
A file containing SQL statements to execute on first startup.
|
A file containing SQL statements to execute on first startup.
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user