1 import ./make-test-python.nix ({ pkgs, ...} :
5 meta = with pkgs.lib.maintainers; {
6 maintainers = [ matthewbauer ];
9 nodes.machine = { ... }:
12 imports = [ ./common/user-account.nix ];
14 fonts.packages = with pkgs; [ dejavu_fonts ];
19 program = "${pkgs.xterm}/bin/xterm";
22 # Need to switch to a different GPU driver than the default one (-vga std) so that Cage can launch:
23 virtualisation.qemu.options = [ "-vga none -device virtio-gpu-pci" ];
28 testScript = { nodes, ... }: let
29 user = nodes.machine.config.users.users.alice;
31 with subtest("Wait for cage to boot up"):
33 machine.wait_for_file("/run/user/${toString user.uid}/wayland-0.lock")
34 machine.wait_until_succeeds("pgrep xterm")
35 machine.wait_for_text("alice@machine")
36 machine.screenshot("screen")