nixos/postgresql: use a standard default value for dataDir

This commit is contained in:
Aaron Andersen
2020-08-05 17:31:12 -04:00
parent 4e3b009778
commit 4f5fc729c7
2 changed files with 14 additions and 5 deletions
@@ -615,6 +615,17 @@ services.dokuwiki."mywiki" = {
};
...
};
</programlisting>
</para>
</listitem>
<listitem>
<para>
The <xref linkend="opt-services.postgresql.dataDir"/> option is now set to <literal>"/var/lib/postgresql/${cfg.package.psqlSchema}"</literal> regardless of your
<xref linkend="opt-system.stateVersion"/>. Users with an existing postgresql install that have a <xref linkend="opt-system.stateVersion"/> of <literal>17.09</literal> or below
should double check what the value of their <xref linkend="opt-services.postgresql.dataDir"/> option is (<literal>/var/db/postgresql</literal>) and then explicitly
set this value to maintain compatibility:
<programlisting>
services.postgresql.dataDir = "/var/db/postgresql";
</programlisting>
</para>
</listitem>