Save environment settings in a generic way