Access providers in EnterpriseRepositoryPlugin in init.gradle

Thank you a lot, this indeed has worked with

settings.providers.environmentVariable()
settings.providers.systemProperty()

This one is followed up by a new problem Set pluginManagement.repositories in init.gradle which really lets me think about what changes in the first place. Any clues?