nix-community / nix-on-droid

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

~/storage equivalent #85

Closed lypanov closed 3 years ago

lypanov commented 3 years ago

I've been looking into what it would take to introduce ~/storage to nix-on-droid (TermuxArch for example has it) but I'm a massive nix newbie and found it quite difficult to figure out where the needed bind would need to be added.

Have you already looked into this by any chance?

Thank you! Alex

t184256 commented 3 years ago

What is it and what does it do?

At least on my Android 9, if you allow storage access in the app settings (reachable through Android settings), you can then access your sdcard through regular Android paths, is this what you're after? You can symlink it as ~/storage then.

lypanov commented 3 years ago

For future reference for anyone else looking for this feature coming from Termux land. An example such path is /storage/emulated/0/Download (not sure if this is universal).

Thank you! Closing the ticket as the remaining stuff is usability, and I don't forsee many nix users complaining about that.