To verify take $y_1 = e^t, y_2 = t$, then
\begin{align*}
y_1' = e^t,\ &y_2' = 1\\
y_1'' = e^t,\ &y_2'' = 0
\end{align*}
Plug in to the original equation, we check both are 0
\begin{align*}
(1-t)e^t + te^t - e^t &= 0\\
t - t &= 0
\end{align*}
Now take the Wronskian
\begin{align*}
W = e^t - te^t = (1-t)e^t
\end{align*}
Use the variation of parameters equation to find
\begin{align*}
u_1 &= -\int\frac{y_2g}{W}\\
&= -2\int te^{-2t}dt\\
&= (t+\frac{1}{2})e^{-2t}
\end{align*}
\begin{align*}
u_2 &= \int\frac{y_1g}{W}\\
&= 2\int e^{-t}dt\\
&= -2e^{-t}
\end{align*}
Putting the pieces together, we have the particular solution
\begin{align*}
Y &= (t+\frac{1}{2})e^{-t} - 2te^{-t}\\
&= \frac{1}{2}e^{-t} - te^{-t}\\
&= e^{-t}(\frac{1}{2} - t) \\
&= -\frac{1}{2}(2t-1)e^{-t}\\
\end{align*}