Files
nixpkgs/nixos/tests/common/openxr.nix
2026-07-05 13:09:23 -04:00

40 lines
887 B
Nix

{
lib,
pkgs,
config,
...
}:
{
imports = [
./user-account.nix
./x11.nix
];
test-support.displayManager.auto.user = "alice";
systemd.user.targets.xdg-desktop-autostart = {
wantedBy = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
};
hardware.graphics.enable = true;
services.monado = {
enable = true;
defaultRuntime = true;
forceDefaultRuntime = true;
};
systemd.user.services.monado = {
requires = [ "graphical-session.target" ];
environment = {
# Stop Monado from probing for any hardware
SIMULATED_ENABLE = "1";
SIMULATED_LEFT = "simple";
SIMULATED_RIGHT = "simple";
# Run as X11 client rather than using direct mode
XRT_COMPOSITOR_FORCE_XCB = "1";
# And run fullscreen so that we can hide the DE
XRT_COMPOSITOR_XCB_FULLSCREEN = "1";
};
};
}