Waydroid: Difference between revisions

Onny (talk | contribs)
Tips and tricks: Add entry notification forwarding
Mach50 (talk | contribs)
Use the waydroid-nftables package that is required for running on linux kernel 6.17+
 
(4 intermediate revisions by 4 users not shown)
Line 6: Line 6:
== Installation ==
== Installation ==


Enable Waydroid in your system configuration:
Enable Waydroid in your system configuration and use the <code>waydroid-nftables</code> package which has patches to run on newer linux kernel versions that use nftables instead of the older iptables:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|3=<nowiki>
{
{
   virtualisation.waydroid.enable = true;
   virtualisation.waydroid = {
    enable = true;
    package = pkgs.waydroid-nftables;
  };
}
}
</nowiki>}}
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}}




Line 67: Line 70:
== Customization ==
== Customization ==


=== Running applications that differ from the current host architecture via libhoudini<ref>Need help with activating libhoudini for waydroid on NixOS
=== Running applications that differ from the current host architecture via libhoudini or libndk<ref>Need help with activating libhoudini for waydroid on NixOS


https://www.reddit.com/r/NixOS/comments/15k2jxc/need_help_with_activating_libhoudini_for_waydroid/</ref> ===
https://www.reddit.com/r/NixOS/comments/15k2jxc/need_help_with_activating_libhoudini_for_waydroid/</ref> ===


# Add NUR to your flake or shell or something like that base on [https://github.com/nix-community/NUR readme]
Run <code>nix shell github:nix-community/NUR#repos.ataraxiasjel.waydroid-script -c sudo waydroid-script</code>
# Add nur.repos.ataraxiasjel.waydroid-script to your packages, if you were using nixos then set it as a item in environment.systemPackages, HM then home.packages.
 
# Use  `sudo waydroid-script` to run the script
Or, alternatively, add <code>nur.repos.ataraxiasjel.waydroid-script</code> from the NUR to your flake or shell or NixOS <code>environment.systemPackages</code>, or HM <code>home.packages</code> or something like that based on [https://github.com/nix-community/NUR readme] and run <code>sudo waydroid-script</code>
# Select Android 11 >> Install >libhoudini, which the script only support libhoudini in this version.
 
In the TUI, select Android 13 > Install > libhoudini (or libndk, [https://github.com/casualsnek/waydroid_script/blob/fcb15624db0811615ea9800837a836c4777674bf/README.md#install-libndk-arm-translation which script author claims may be faster on AMD])


== Maintenance  ==
== Maintenance  ==
Line 103: Line 107:
=== Mount host directories ===
=== 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">
{{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 ];
environment.systemPackages =  [ pkgs.waydroid-helper ];


systemd = {
systemd = {
   packages = [ pkgs.waydroid-helper ];
   packages = [ pkgs.waydroid-helper ];
   services.waydroid-mount.wantedBy = [ "multi‑user.target" ];
   services.waydroid-mount.wantedBy = [ "multi-user.target" ];
};
};