We study the effects of non-magnetic impurities on the phase diagram of a system of interacting electrons with a flat Fermi surface. The one-loop Wilsonian renormalization group flow of the angle dependent diffusion function D(θ1, θ2, θ3) and interaction U (θ1, θ2, θ3) determines the critical temperature and the nature of the low temperature state. As the imperfect nesting increases the critical temperature decreases and the low temperature phase changes from the spin-density wave (SDW) to the d-wave superconductivity (dSC) and finally, for bad nesting, to the random antiferromagnetic state (RAF). Both SDW and dSC phases are affected by disorder. The pair breaking depends on the imperfect nesting and is the most efficient when the critical temperature for superconductivity is maximal.PACS numbers: 73.20.Fz Interesting and new physics appears when density wave (DW) and superconducting (SC) correlations interfere with each other and with the disorder. One finds realizations of such interferences in correlated electronic systems whose Fermi surface (FS) has at least imperfect nesting properties. The Bechgaard salts (TMTSF) 2 X and the Fabre salts (TMTTF) 2 X have two open quasi-onedimensional Fermi sheets responsible for DW correlations and, very probably, for superconductivity.[1] In these compounds the disorder strength can be tuned by the cooling speed or by x-ray irradiation, while the imperfect nesting is controlled either by chemical structure or by pressure. Another example of correlated system with important disorder effects are the two-dimensional (2D) organic compounds from the BEDT-TTF (ET) family.[1, 2] All ETs have a metal-insulator and/or a DW transition in the phase diagram. They have two FSs with several more or less perfect inter-and intra-band nesting wave vectors. Their superconductivity is induced by the DW fluctuations. In the high-T c superconductors the pseudogap and the superconducting states are both related to the antiferromagnetic (commensurate SDW) insulating phase. The effects of disorder on the high-T c superconductivity has been widely studied experimentally and theoretically. [6,7] It has been shown by a number of methods, and in particular by the angle resolved renormalization group (RG) that this interplay between the DW, the pseudogap and the SC exists in models with at least flat segments of the FS or with nested van Hove singularities. [3,4,5] However, no attempt has been made to implement both disorder and correlations in the Npatch RG, which would provide a perturbative, but nonbiased and controlled way for constructing the phase diagram.In this letter we report a perturbative angle-resolved (N-patch) RG theory for the model consisting of two flat FS segments in regard. The imperfect nesting parameter is treated approximately, by introducing a cut-off ǫ in the Peierls channel. For the pure case this problem was solved in the Parquet formulation by Zheleznyak et al [3] and later closely reexamined in the field-theoretical RG language.[8] While previous theories in more than...