The how was easy enough, there is a not so hard to find "Package sources" setting in the settings.
The what took me a bit longer: https://api.nuget.org/v3/index.json