5 meta.maintainers = with lib.maintainers; [ mvnetbiz ];
7 nodes.machine = { pkgs, config, ... }: {
9 ./common/user-account.nix
13 environment.systemPackages = with pkgs; [ android-tools ];
15 test-support.displayManager.auto.user = "alice";
17 virtualisation.anbox.enable = true;
18 boot.kernelPackages = pkgs.linuxKernel.packages.linux_5_15;
19 virtualisation.memorySize = 2500;
22 testScript = { nodes, ... }: let
23 user = nodes.machine.users.users.alice;
24 bus = "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/${toString user.uid}/bus";
28 machine.wait_until_succeeds(
29 "sudo -iu alice ${bus} anbox wait-ready"
32 machine.wait_until_succeeds("adb shell true")
34 print(machine.succeed("adb devices"))