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:
parent
a5b83c3573
commit
ace332eb36
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue