How the Nernst equation is applied for electrodeposition?
For a metal electrode immersed in a solution of its own salt, the concentration of the reduced form as a solid phase remains constant ($[\ce{M^0}] = \mathrm{const}$), therefore:

$$E = E_0 + \frac{RT}{nF}\ln[\ce{Ox}]$$