Magnetizing the circumgalactic medium of disc galaxies