You may use Termux , which is one of the ways mentioned in the documentation.
To install Nim in Termux, just run
apt update && apt install nim
Also I recommend Acode as the code editor, because it's open-sourced and supports syntax highlighting for Nim.