summary refs log tree commit diff
path: root/nixos/modules/services/databases/postgresql.nix
diff options
context:
space:
mode:
authorIvan Kozik <ivan@ludios.org>2022-05-03 22:23:08 +0000
committerIvan Kozik <ivan@ludios.org>2022-05-03 22:23:08 +0000
commit96a8c0ac23c1aca2c6542c85b95ed29b444f4597 (patch)
tree9691b1f531a3c6f368cc99977ac5af7cd1131ff1 /nixos/modules/services/databases/postgresql.nix
parent51a899bdc1e8b28ed6783f9d382d3b9e7838e4b2 (diff)
nixos/postgresql: use postgres 14 for 22.05
postgresql: alias to postgresql_14
Diffstat (limited to 'nixos/modules/services/databases/postgresql.nix')
-rw-r--r--nixos/modules/services/databases/postgresql.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index 2919022496a36..550bd36efff28 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -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");