diff options
author | Ivan Kozik <ivan@ludios.org> | 2022-05-03 22:23:08 +0000 |
---|---|---|
committer | Ivan Kozik <ivan@ludios.org> | 2022-05-03 22:23:08 +0000 |
commit | 96a8c0ac23c1aca2c6542c85b95ed29b444f4597 (patch) | |
tree | 9691b1f531a3c6f368cc99977ac5af7cd1131ff1 /nixos/modules | |
parent | 51a899bdc1e8b28ed6783f9d382d3b9e7838e4b2 (diff) |
nixos/postgresql: use postgres 14 for 22.05
postgresql: alias to postgresql_14
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 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"); |