Set a default value for services.postgresql.package

This is finally possible now that we have ‘system.stateVersion’
(allowing the default package to change over time).
This commit is contained in:
Eelco Dolstra 2015-07-27 20:26:19 +02:00
parent a5b83c3573
commit ace332eb36

View File

@ -154,6 +154,12 @@ in
config = mkIf config.services.postgresql.enable {
services.postgresql.package =
# Note: when changing the default, make it conditional on
# system.stateVersion to maintain compatibility with existing
# systems!
mkDefault pkgs.postgresql94;
services.postgresql.authentication = mkAfter
''
# Generated file; do not edit!