anchor.diff:      systemd.services.gitlab-postgresql = let pgsql = config.services.postgresql; in mkIf databaseActuallyCreateLocally {
         after = [ "postgresql.service" ];
         bindsTo = [ "postgresql.service" ];
  -      wantedBy = [ "multi-user.target" ];
  +      wantedBy = [ "gitlab.target" ];
  +      partOf = [ "gitlab.target" ];
         path = [
           pgsql.package
           pkgs.util-linux
  
positive.code:         "gitlab-config.service"
        ] ++ optional (cfg.databaseHost == "") "postgresql.service"
          ++ optional databaseActuallyCreateLocally "gitlab-postgresql.service";
        wantedBy = [ "multi-user.target" ];
        serviceConfig = {
          Type = "oneshot";
          User = cfg.user;
  
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
  