I've been programming on my phone with termux + vim. It's been sort of a delight.

In case you want the same Termux experience but also the huge nix packages collection - check out https://github.com/t184256/nix-on-droid