I would like to emphasise a few aspects that seem to be a little bit between the lines in the other answers.
Density functional theory is based on the fact that observables of an interacting-electron system can in principle be obtained from its ground-state electron density. The Kohn-Sham system is a means of obtaining this density (and a few other objects that make certain calculations more reasonable). Obviously the interaction between the nuclei does not directly affect the ground-state electron density and therefore it is not required to include this interaction directly in the Kohn-Sham system$^1$.
Nevertheless this interaction is very important when calculating the total energy of a system. For a system with a unit cell $\Omega$ containing atoms with core charges $Z_\alpha$ at $\mathbf{\tau}_\alpha$ and featuring a spin-dependent ground-state electron density $\rho^\sigma$ and Kohn-Sham eigenvalues $E_{\nu,\sigma}$ the total energy functional is
\begin{align}
E_\text{total}[\rho^\uparrow,\rho^\downarrow] &= \underbrace{\left[\sum\limits_\sigma \left(\sum\limits_{\nu=1}^{N_\text{occ}^\sigma} E_{\nu,\sigma}\right) - \int\limits_{\Omega} \rho^\sigma(\mathbf{r}) V_{\text{eff},\sigma}(\mathbf{r}) d^3 r \right]}_{E_\text{kin}}\nonumber \\ &\phantom{=} + \underbrace{\frac{1}{2}\int\limits_{\Omega}\int\limits_{\Omega}\frac{\rho(\mathbf{r})\rho(\mathbf{r}')}{\vert\mathbf{r}-\mathbf{r}'\vert} d^3rd^3r' + \int\limits_{\mathbb{R}^3\backslash \Omega}\int\limits_{\Omega}\frac{\rho(\mathbf{r})\rho(\mathbf{r}')}{\vert\mathbf{r}-\mathbf{r}'\vert} d^3rd^3r'}_{E_\text{H}} \\ &\phantom{=} + \underbrace{\int\limits_{\Omega} V_\text{ext}(\mathbf{r}) \rho(\mathbf{r})d^3r \nonumber}_{E_\text{ext}} + E_\text{xc}[\rho^\uparrow,\rho^\downarrow] \\ &\phantom{=} + \underbrace{\frac{1}{2}\sum\limits_{\alpha \in \Omega}^{N_\text{atom}} \sum\limits_{\substack{\beta \in \Omega \\ \alpha\neq \beta}}^{N_\text{atom}} \frac{Z_\alpha Z_\beta}{\vert\mathbf{\tau}_\alpha - \mathbf{\tau}_\beta\vert} + \sum\limits_{\alpha \not\in \Omega} \sum\limits_{\beta \in \Omega}^{N_\text{atom}} \frac{Z_\alpha Z_\beta}{\vert\mathbf{\tau}_\alpha - \mathbf{\tau}_\beta\vert}}_{E_\text{II}}.
\end{align}
In this expression $E_\text{kin}$ denotes the kinetic energy of the occupied Kohn-Sham orbitals, $E_\text{H}$ the Hartree energy, $E_\text{ext}$ the energy due to the interaction between the electrons and the external potential, $E_\text{XC}$ the exchange-correlation energy, and $E_\text{II}$ the energy due to the Coulomb interaction between the ionized atomic nuclei.
By having a look at this expression two properties directly become obvious:
- $E_\text{II}$ gives an energy contribution that depends on the coordinates of the atomic nuclei relative to each other. This term therefore is important when calculating forces $\mathbf{F}_\alpha = -\frac{\delta E_\text{total}}{\delta \mathbf{\tau}_\alpha}$ and also when only relating different structures to each other that have slightly different atom distances, e.g., when calculating a lattice constant.
- For periodic systems like crystals $E_\text{H}$, $E_\text{ext}$, and $E_\text{II}$ each are divergent. This is because of the long range of the Coulomb interaction together with the inclusion of contributions from the whole space outside the unit cell. These energy contributions only become finite when combined. For such systems neglecting $E_\text{II}$ therefore would result in a divergent total energy for the unit cell. Also care has to be taken to evaluate these contributions such that intermediate results don't diverge. A similar divergence arises if the periodically repeated unit cell is not charge neutral. Such a situation would lead to an infinite charge in the whole crystal implying an infinite electrostatic energy.
Taking into account the ion-ion interaction within a DFT procedure therefore is essential, not optional. But you will not see it explicitly in the Kohn-Sham equations.
[1] Of course, the issue of divergent contributions for infinite setups also has to be taken care of in the Kohn-Sham system.