Waydroid: Difference between revisions
m Link to Wayland page |
→Tips and tricks: Add section mounting local folders |
||
| Line 100: | Line 100: | ||
== Tips and tricks == | == Tips and tricks == | ||
=== Mount host directories === | |||
{{Warning|Parts of this instruction will only work with the latest waydroid-helper package in NixOS master and will be available with the next release 25.11}}Install and configure graphical application <code>waydroid-helper</code><syntaxhighlight lang="nix"> | |||
systemd.packages = [ pkgs.waydroid-helper ]; | |||
environment.systemPackages = [ pkgs.waydroid-helper ]; | |||
systemd = { | |||
packages = [ pkgs.waydroid-helper ]; | |||
services.waydroid-mount = { | |||
enable = true; | |||
wantedBy = [ "multi‑user.target" ]; | |||
}; | |||
}; | |||
</syntaxhighlight>Enable the user service which is also required. Note that this is not persistent and needs to get started after reboot again.<syntaxhighlight lang="bash"> | |||
systemctl --user start waydroid-monitor | |||
</syntaxhighlight>Now start <code>waydroid-helper</code> application and add a shared directory. As an example, Source could be <code>/home/myuser/Public</code> and target <code>/home/myuser/.local/share/waydroid/data/media/0/NixOS</code>. Ensure that both directories already exist locally. After that you might need to restart the ''Waydroid'' container which is also possible with the graphical user interface. | |||
=== GPS/Location forwarding === | === GPS/Location forwarding === | ||