diff options
author | Yaya <mak@nyantec.com> | 2023-05-20 16:36:29 +0000 |
---|---|---|
committer | Yureka <yuka@yuka.dev> | 2023-05-31 22:14:25 +0200 |
commit | 2a4536952a3d4481b22dfedeb0a8482083c321f4 (patch) | |
tree | e0343c3dfeb6b680762458c07aad826f1e228ccb /nixos/modules/services | |
parent | 4321e48b6851f187696bd4ef544cd2f6e6dfbd8b (diff) | |
download | nixlib-2a4536952a3d4481b22dfedeb0a8482083c321f4.tar nixlib-2a4536952a3d4481b22dfedeb0a8482083c321f4.tar.gz nixlib-2a4536952a3d4481b22dfedeb0a8482083c321f4.tar.bz2 nixlib-2a4536952a3d4481b22dfedeb0a8482083c321f4.tar.lz nixlib-2a4536952a3d4481b22dfedeb0a8482083c321f4.tar.xz nixlib-2a4536952a3d4481b22dfedeb0a8482083c321f4.tar.zst nixlib-2a4536952a3d4481b22dfedeb0a8482083c321f4.zip |
nixos/gitlab: Require at least postgresql 13.6
https://docs.gitlab.com/16.0/ee/install/requirements.html#postgresql-requirements
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index 998bf8074730..ef1c9cea0476 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -12,7 +12,7 @@ let postgresqlPackage = if config.services.postgresql.enable then config.services.postgresql.package else - pkgs.postgresql_12; + pkgs.postgresql_13; gitlabSocket = "${cfg.statePath}/tmp/sockets/gitlab.socket"; gitalySocket = "${cfg.statePath}/tmp/sockets/gitaly.socket"; @@ -1098,8 +1098,8 @@ in { message = "services.gitlab.secrets.jwsFile must be set!"; } { - assertion = versionAtLeast postgresqlPackage.version "12.0.0"; - message = "PostgreSQL >=12 is required to run GitLab 14. Follow the instructions in the manual section for upgrading PostgreSQL here: https://nixos.org/manual/nixos/stable/index.html#module-services-postgres-upgrading"; + assertion = versionAtLeast postgresqlPackage.version "13.6.0"; + message = "PostgreSQL >=13.6 is required to run GitLab 16. Follow the instructions in the manual section for upgrading PostgreSQL here: https://nixos.org/manual/nixos/stable/index.html#module-services-postgres-upgrading"; } ]; |