mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-16 06:29:17 +03:00
services.postgres: add initialScript example
This commit is contained in:
parent
956a1876aa
commit
b53c715e50
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue