See https://github.com/nim-lang/nimble#configuration (search for proxy)
You can also set the standard HTTP_PROXY environment vars IIRC.