anchor.diff:          "gitlab-config.service"
         ] ++ optional (cfg.databaseHost == "") "postgresql.service"
           ++ optional databaseActuallyCreateLocally "gitlab-postgresql.service";
  -      wantedBy = [ "multi-user.target" ];
  +      wantedBy = [ "gitlab.target" ];
  +      partOf = [ "gitlab.target" ];
         serviceConfig = {
           Type = "oneshot";
           User = cfg.user;
  
positive.code:     systemd.services.gitaly = {
        after = [ "network.target" "gitlab-config.service" ];
        bindsTo = [ "gitlab-config.service" ];
        wantedBy = [ "multi-user.target" ];
        path = with pkgs; [
          openssh
          procps  # See https://gitlab.com/gitlab-org/gitaly/issues/1562
  
negative.code:         "gitlab-config.service"
          "gitlab-db-config.service"
        ] ++ optional (cfg.databaseHost == "") "postgresql.service";
        wantedBy = [ "gitlab.target" ];
        partOf = [ "gitlab.target" ];
        environment = gitlabEnv;
        path = with pkgs; [
          postgresqlPackage
  