Yes, nanobox will try to auto-configure your environment for you. If you would rather define your environment or if nanobox can't auto-configure your environment, you can either:
1- Explicitly define your app's environment with the Boxfile (https://docs.nanobox.io/getting-started/boxfile/)
2- Write your own engine that will actually setup the environment (https://desktop.nanobox.io/engine-dev/).