Nucleus--nucleus interactions in the inner crust of neutron stars