In the Netherlands municipalities have been collaborating for years already to build an open source ecosystem: https://commonground.nl/
We have 342 municipalities, all buying the same apps (from 3 or 4 vendors) to deliver basic services to their citizens. Common Ground aims to replace all of those with open source solutions.