summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorYuka <yuka@yuka.dev>2021-07-24 19:12:08 +0200
committerGitHub <noreply@github.com>2021-07-24 19:12:08 +0200
commit7d24d06c71d3abd72c25caaea86305aa46d44a08 (patch)
tree761b751bc1a179aed66a3b255a65844d9758f39c /nixos/modules
parent372839674f9cb01191db33efdfc30ed1aabdc08d (diff)
downloadnixpkgs-7d24d06c71d3abd72c25caaea86305aa46d44a08.tar
nixpkgs-7d24d06c71d3abd72c25caaea86305aa46d44a08.tar.gz
nixpkgs-7d24d06c71d3abd72c25caaea86305aa46d44a08.tar.bz2
nixpkgs-7d24d06c71d3abd72c25caaea86305aa46d44a08.tar.lz
nixpkgs-7d24d06c71d3abd72c25caaea86305aa46d44a08.tar.xz
nixpkgs-7d24d06c71d3abd72c25caaea86305aa46d44a08.tar.zst
nixpkgs-7d24d06c71d3abd72c25caaea86305aa46d44a08.zip
nixos/postgresql: use postgres 13 for 21.11 (#131018)
Co-authored-by: Kim Lindberger <kim.lindberger@gmail.com>
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.");