1 import ./make-test-python.nix ({ pkgs, ... }: {
8 hardware.graphics.enable = true;
16 defaultRuntime = true;
18 # Stop Monado from probing for any hardware
19 systemd.user.services.monado.environment.SIMULATED_ENABLE = "1";
21 environment.systemPackages = with pkgs; [ openxr-loader ];
24 testScript = { nodes, ... }:
26 userId = toString nodes.machine.users.users.alice.uid;
27 runtimePath = "/run/user/${userId}";
30 machine.succeed("loginctl enable-linger alice")
31 machine.wait_for_unit("user@${userId}.service")
33 machine.wait_for_unit("monado.socket", "alice")
34 machine.systemctl("start monado.service", "alice")
35 machine.wait_for_unit("monado.service", "alice")
37 machine.succeed("su -- alice -c env XDG_RUNTIME_DIR=${runtimePath} openxr_runtime_list")