nixos/postgresql: use postgres 14 for 22.05

postgresql: alias to postgresql_14
This commit is contained in:
Ivan Kozik 2022-05-03 22:23:08 +00:00
parent 51a899bdc1
commit 96a8c0ac23
4 changed files with 12 additions and 4 deletions

View file

@ -295,7 +295,8 @@ in
# Note: when changing the default, make it conditional on
# system.stateVersion to maintain compatibility with existing
# systems!
mkDefault (if versionAtLeast config.system.stateVersion "21.11" then pkgs.postgresql_13
mkDefault (if versionAtLeast config.system.stateVersion "22.05" then pkgs.postgresql_14
else if versionAtLeast config.system.stateVersion "21.11" then pkgs.postgresql_13
else if versionAtLeast config.system.stateVersion "20.03" then pkgs.postgresql_11
else if versionAtLeast config.system.stateVersion "17.09" then mkThrow "9_6"
else mkThrow "9_5");