Text this: Boundary electromagnetic duality from homological edge modes.