Any way to trigger a command in #NixOnDroid with the press of a button on the home screen?

For #termux there is the widget app but it doesn't appear to work with #nix-on-droid.

I really don't want to have to install and maintain #gitAnnex using some install script and some prebuilt global FHS binaries when I could simply get it from #nixpkgs.

@Atemu definitely if you can run a command outside nix-on-droid, you can invoke one inside it with a wrapper, same one used for regular interactive sessions. I don't remember the path off the top of my head, but it's the one ending with `/login`

@monk

Hm, I don't think that's trivially possible given that any app that wanted to trigger this would need to somehow be granted filesystem access to nix-on-droid's data dir in order to access that wrapper or any nix store contents.

I was more looking for some sort of standard API to trigger nix-on-droid to run a pre-set command itself.

Surely I can't be the first to attempt to run a command from the home screen?

@Atemu send PRs to the app to fix the widget, I guess. it's probably just down to the renaming the app in the intent, I just never bothered to fix it since I never even tried it.

(now I've remembered when I was using the mechanism I've described: it was about running a keyboard remapper with easer when the keyboard is connected. since it was done as root anyway, the permissions were of no concern)