<giaco>
samueldr: thank you! Exactly same problem. I was wandering if unsetting the LD variables at the right place in the install script would do the trick
<giaco>
samueldr: success! By adding two lines to the nix_install script I've been able to drop a nix installation in termux :)
<giaco>
basically the problem is that all the termux binaries won't work without LD_LIBRARY_PATH set, and LD_PRELOAD adds noise. By dropping into termux-chroot (proot env that make sandboxed apk termux env look like a normal root install /) creating /nix and launching the modified install script you end up in a nix env in /data/data/com.termux/files/nix
<giaco>
you have some errors and warnings during install, but hopefully just some missing installation info. I got an Installation finished! at the end