Simple forms of mutualism between microorganisms are widespread in nature. Nevertheless, the role played by the environmental nutrient composition in mediating cross-feeding in microbial ecosystems is still poorly understood.