If the line segment joining the points \( (1,0) \) and \( (0,1) \) subtends an angle of \( 45^\circ \) at a variable point \( P \), then the equation of the locus of \( P \) is: