y = e^(-x) -x + 1

I am told to find the x-intercept so:

0 = e^(-x) - x +1

I have no idea what to do next, I tried to cancel out the denominator by multiplying everything by e^x so it becomes

1 - xe^(x) + e^(x) = 0

1 - e^(x) [x+1] = 0

I am stuck here, can anyone please help me out a bit here