nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.15k stars 65 forks source link

Changing hostname (for flakes) #345

Open jpentland opened 3 months ago

jpentland commented 3 months ago

Currently when running hostname we see the result localhost which is also used to locate the system target for nix-on-droid switch when using flakes.

It would be helpful to change this to allow several nix-on-droid devices to be included in the same flake. Of course there could be other workarounds such as aliasing the command, if not possible, but it would be nice if this were possible.

Gerschtli commented 3 months ago

I agree, but see https://github.com/nix-community/nix-on-droid/issues/51.

jpentland commented 3 months ago

Oops, missed that in search because of the space. The actual hostname of the device isn't 'localhost' though, so this has something to do with the chroot?