In case of switch_arch it would unclutter some modules if an environment variable for the system architecture is provided.
Maybe creating a module for that purpose would suffice.
@dreher @kartmann