anchor.diff:                          config.services.postgresql.package
                         else
                           pkgs.postgresql_12;
  +
  +  # Git 2.36.1 seemingly contains a commit-graph related bug which is
  +  # easily triggered through GitLab, so we downgrade it to 2.35.x
  +  # until this issue is solved. See
  +  # https://gitlab.com/gitlab-org/gitlab/-/issues/360783#note_992870101.
  +  gitPackage =
  +    let
  +      version = "2.35.3";
  +    in
  +      pkgs.git.overrideAttrs (oldAttrs: rec {
  +        inherit version;
  +        src = pkgs.fetchurl {
  +          url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
  +          sha256 = "sha256-FenbT5vy7Z//MMtioAxcfAkBAV9asEjNtOiwTd7gD6I=";
  +        };
  +      });
   
     gitlabSocket = "${cfg.statePath}/tmp/sockets/gitlab.socket";
     gitalySocket = "${cfg.statePath}/tmp/sockets/gitaly.socket";
  
positive.code:       };
        workhorse.secret_file = "${cfg.statePath}/.gitlab_workhorse_secret";
        gitlab_kas.secret_file = "${cfg.statePath}/.gitlab_kas_secret";
        git.bin_path = "git";
        monitoring = {
          ip_whitelist = [ "127.0.0.0/8" "::1/128" ];
          sidekiq_exporter = {
  
negative.code:       path = with pkgs; [
          openssh
          procps  # See https://gitlab.com/gitlab-org/gitaly/issues/1562
          gitPackage
          cfg.packages.gitaly.rubyEnv
          cfg.packages.gitaly.rubyEnv.wrappedRuby
          gzip
  