Perhaps the best solution to the original problem would be to modify postfix to accept local = null; or add a boolean flag to suppress parts of the configuration, whatever makes sense, is easier to explain in the documentation and harder to misuse accidentally. Adding complexity is not always the best approach. Modules are supposed to be merged together, perhaps with conflict resolution. Any behavior beyond merging would be surprising and hard to debug.
Let’s keep NixOS simple - there are already jokes that NixOS requires PhD in computer science GitHub - ashos/ashos: The immutable/mutable meta-distribution (universal bootstrapper)