nix-on-droid icon indicating copy to clipboard operation
nix-on-droid copied to clipboard

Magisk-based implementation, instead of proot?

Open bqv opened this issue 2 years ago • 3 comments

Spitballing here, on rooted devices where it seems like gentoo prefix has died, nix seems like a nice alternative. I'm somewhat sure, with magisk, a real /nix could be bind-mounted from e.g. /data/nix, and a nix-daemon run in a privileged scope so that any terminal app can then access the store, and any user can run apps

Thoughts?

bqv avatar Feb 19 '23 20:02 bqv

If you have root, you can also do user mount namespaces. Outer login script will have to be modified to use them instead of proot. Pull requests are welcome.

t184256 avatar Feb 19 '23 20:02 t184256

user mount namespaces wont work without somewhere to mount to, unless i'm wrong?

anyway, the loss with that avenue is nix-daemon isn't running (in a privileged scope)

bqv avatar Feb 19 '23 20:02 bqv

there seems to be a proof-of-concept for that in https://github.com/nix-community/nix-on-droid/issues/3#issuecomment-2310696825

t184256 avatar Aug 26 '24 17:08 t184256