Step 1: Reduce order. Let $v(t)=\dot{x}(t)$. Then $\dot{v}=-kv$ with solution
\[
v(t)=v(0)\,e^{-kt}.
\]
Step 2: Apply initial condition. $v(0)=\dot{x}(0)=0 \Rightarrow v(t)\equiv 0$ for all $t$.
Step 3: Integrate for $x(t)$. Since $\dot{x}(t)=0$, $x(t)$ is constant; using $x(0)=1$, we get $x(t)\equiv 1$.