nix-on-droid
nix-on-droid copied to clipboard
Magisk-based implementation, instead of proot?
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?
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.
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)
there seems to be a proof-of-concept for that in https://github.com/nix-community/nix-on-droid/issues/3#issuecomment-2310696825