  We propose a protocol for the deterministic generation of entanglement
between two ensembles of nuclear spins surrounding two distant quantum dots.
The protocol relies on the injection of electrons with definite polarization in
each quantum dot and the coherent transfer of electrons from one quantum dot to
the other. Computing the exact dynamics for small systems, and using an
effective master equation and approximate non-linear equations of motion for
larger systems, we are able to confirm that our protocol indeed produces
entanglement for both homogeneous and inhomogeneous systems. Last, we analyze
the feasibility of our protocol in several current experimental platforms.
