summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-24 18:01:04 +0000
committerGitHub <noreply@github.com>2021-07-24 18:01:04 +0000
commit859acbc1bc439bdb3d7a55001f754b1b9b30a7f6 (patch)
tree053941b269c6b97541196b1ed1233d1e0eba594a /nixos/modules
parent935113fe43940c5a65e4ee85df4bb63a4761e456 (diff)
parent26edbe155b550a54714a8bc727c176362aa5f4f5 (diff)
downloadnixpkgs-859acbc1bc439bdb3d7a55001f754b1b9b30a7f6.tar
nixpkgs-859acbc1bc439bdb3d7a55001f754b1b9b30a7f6.tar.gz
nixpkgs-859acbc1bc439bdb3d7a55001f754b1b9b30a7f6.tar.bz2
nixpkgs-859acbc1bc439bdb3d7a55001f754b1b9b30a7f6.tar.lz
nixpkgs-859acbc1bc439bdb3d7a55001f754b1b9b30a7f6.tar.xz
nixpkgs-859acbc1bc439bdb3d7a55001f754b1b9b30a7f6.tar.zst
nixpkgs-859acbc1bc439bdb3d7a55001f754b1b9b30a7f6.zip
Merge master into staging-next
Diffstat (limited to 'nixos/modules')
-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 effc9182472..fd4a195787f 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -293,7 +293,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 "20.03" then pkgs.postgresql_11
+      mkDefault (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 pkgs.postgresql_9_6
             else throw "postgresql_9_5 was removed, please upgrade your postgresql version.");