We consider a certain variational problem on Caccioppoli partitions with countably many components, which models immiscible fluids as well as variational image segmentation, and generalizes the well-known problem with prescribed mean curvature. We prove existence and regularity results, and finally show some explicit examples of minimizers.