Setting and resolving environment configurations