Curving Yang-Mills-Higgs gauge theories