diff --git a/nixos/modules/services/misc/gitlab/default.nix b/nixos/modules/services/misc/gitlab/default.nix index 81008a92d9e0..b66cd0bd188e 100644 --- a/nixos/modules/services/misc/gitlab/default.nix +++ b/nixos/modules/services/misc/gitlab/default.nix @@ -1285,6 +1285,8 @@ in services.postgresql = optionalAttrs databaseActuallyCreateLocally { enable = true; ensureUsers = singleton { name = cfg.databaseUsername; }; + # With the PostgreSQL update to 17.6, the default was no longer enough. + settings.max_locks_per_transaction = lib.mkDefault 128; }; # Enable rotation of log files