Modular architectures for quantum networks