Waydroid
WayDroid is an application which uses LXC containers to run Android applications on a non-Android system.
Install:
We will need to enable the WayDroid and LXC services.
/etc/nixos/configuration.nix
{ pkgs, ... }:
{
virtualisation = {
waydroid. enable = true;
lxc.enable = true;
};
}
From here you will need to finish the WayDroid install in your shell.
# Rebuild NixOS config.
nixos-rebuild switch
# Fetch WayDroid images.
sudo waydroid init
# Start WayDroid session
waydroid session start
Usage
# Start Android UI
waydroid show-full-ui
# Start an Android app
waydroid app start <application name>
# Install an Android app
waydroid app install </path/to/app.apk>
# List Android apps
waydroid app list
# Enter the LXC shell
sudo waydroid shell