Cosmology and galaxy formation : using the galaxy-halo connection to probe cosmology