t184256 / nix-in-termux

A script to install Nix package manager inside a Termux installation (on Android, aarch64)
GNU Lesser General Public License v2.1
105 stars 14 forks source link

Unable to use ssh from inside `nix run` shell #2

Closed ghost closed 5 years ago

ghost commented 5 years ago
./nix-in-termux nix run nixpkgs.bashInteractive
> ssh

outputs:

No user exist for uid 10161
t184256 commented 5 years ago

That's an easy one, you just need an /etc/passwd entry.

Another project of mine, a followup to this one, has a fix for that. At this point I advise you to try that one instead as I've shifted my efforts. Sorry for the inconvenience.

ghost commented 5 years ago

Got it. Thank you!

I tried Nix-on-Droid and got this error:

Installing home-manager...
GC Warning: Couldn't read /proc/stat
GC Warning: Couldn't read /proc/stat
these derivations will be built:
/nix/store/6n2w6f1g3rsdrlwl1pbfnxpp9qwrqazb-home-manager.drv
GC Warning: Couldn't read /proc/stat
building '/nix/store/6n2w6f1g3rsdrlwl1pbfnxpp9qwrqazb-home-manager.drv'...
/nix/store/v262b100wnfjhyxjv5bk2zachznf3147-stdenv-linux/setup: line 1259: 24434 Bus error install -v -D -m755 /nix/store/3a2whifgkajbm618v1xx94j8llbm199a-home-manager $out/bin/home-manager
builder for '/nix/store/6n2w6f1g3rsdrlwl1pbfnxpp9qwrqazb-home-manager.drv' failed with exit code 135
error: build of '/nix/store/6n2w6f1g3rsdrlwl1pbfnxpp9qwrqazb-home-manager.drv' failed

Also, I can not make it work with smth. like Termux:Style (not sure if it possible)

Should I file different issue?

t184256 commented 5 years ago

/nix/store/v262b100wnfjhyxjv5bk2zachznf3147-stdenv-linux/setup: line 1259: 24434 Bus error

Aargh, not this thing again.

Should I file different issue?

Sure, please file it against https://github.com/t184256/nix-on-droid-bootstrap and try to include more details about your OS/device. I cannot reproduce this one. =/

Meanwhile you can close it, open the failsafe shell and modify /data/data/com.termux.nix/files/usr/bin/.login-inner until I modify it to make more steps optional.

Also, I can not make it work with smth. like Termux:Style (not sure if it possible)

It is supposed to be integrated into the app already.