Answer
$x\le1$ or $x\ge1$.
Work Step by Step
We can see that $f(x)=(x-1)^2$ is symmetric with respect to $x=1$. To form a one-to-one function, we can select the left or right part separated by $x=1$. Thus the restriction could be $x\le1$ or $x\ge1$.