The emergence of geometry on the domain walls of topological phases