diff options
author | Yuka <yuka@yuka.dev> | 2021-07-24 19:12:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 19:12:08 +0200 |
commit | 7d24d06c71d3abd72c25caaea86305aa46d44a08 (patch) | |
tree | 761b751bc1a179aed66a3b255a65844d9758f39c /nixos/modules | |
parent | 372839674f9cb01191db33efdfc30ed1aabdc08d (diff) | |
download | nixpkgs-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.nix | 3 |
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."); |