I will discuss existence and regularity of fundamental domains which minimize a general perimeter functional in a homogeneous metric measure space. In the planar case I will give a detailed description of the domains which are minimal for a general anisotropic perimeter.