In fact, the hard part is proving the nonunits are closed under addition.
Also, the ring can be noncommutative. The same proof will work.
Suppose the nonunits are closed under addition. Then it is impossible for $x$ and $1-x$ to both be nonunits, because their sum (which is $1$) would have to be a nonunit, and of course $1$ is a unit.
Now suppose $R$ has the property that for every $x\in R$, at least one of $x$ and $1-x$ is a unit. Let $M$ be any maximal right ideal. We claim that every nonunit is in $M$ so that the sum of nonunits is again a nonunit.
First, a little Lemma:
Under the assumptions immediately above, any one-sided invertible element is a unit. Suppose $xy=1$. Then it satisfies $(1-yx)yx=0$. By assumption, one of $yx$ or $1-yx$ is a unit: but in the former case, $1-yx=0$ is a contradition, and in the latter case $yx=0$ leads to a contradiction too.
If we assume to the contrary there is a nonunit $x$ outside of $M$, it would have to be the case that $xR+M=R$. Selecting $r\in R$ and $m\in M$ such that $xr+m=1$, since $x$ is not a unit, $xr$ is not a unit either (because of the lemma: if $xr$ were a unit, $x$ would be right invertible, hence a unit also.) By assumption again, $1-xr$ is a unit... but $1-xr=m\in M$, which is a proper ideal... that is a contradiction.
Hence all nonunits are contained in $M$, and so the nonunits are closed under addition.