Commit b53c715e authored by Matthieu Coudron's avatar Matthieu Coudron
Browse files

services.postgres: add initialScript example

parent 956a1876
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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.
        '';