Compute the sum of all possible values for $x,$ where $(x, y)$ is a solution to the system of equations \[\begin{aligned} x &= y^2 - 6y + 5, \\ y &= |x|. \end{aligned}\]

Let's think step by step and output the final answer within \boxed{}.
user