Files
nix-config/outputs/x86_64-linux/tests/computer-use-headless/expr.nix
T
Ryan Yin 00aab5f562 feat(computer-use): add a headless X11/i3 environment
Give the idols-ruby and idols-kana VMs a headless computer-use
environment: Xvfb plus i3, driven by cua-driver (and computer-use-linux
as a fallback). Includes the system module (AT-SPI, fonts, Mesa, Clash
Verge proxy, proxy-region timezone), the home i3 module (Xvfb/i3/x11vnc
services, browser flags), host wiring and an eval test.
2026-09-21 21:31:27 +08:00

32 lines
803 B
Nix

{
myvars,
lib,
outputs,
}:
let
username = myvars.username;
hosts = [
"ruby"
"kana"
];
in
lib.genAttrs hosts (
name:
let
system = outputs.nixosConfigurations.${name}.config;
home = system.home-manager.users.${username};
in
{
computerUse = system.modules.desktop.computerUse.enable;
atspi = system.services.gnome.at-spi2-core.enable;
clashVerge = system.programs.clash-verge.enable;
timeZone = system.time.timeZone;
xvfbRestart = home.systemd.user.services.xvfb.Service.Restart;
i3Restart = home.systemd.user.services.i3.Service.Restart;
vnc = home.modules.desktop.computerUse.vnc;
cuaDriver = home.modules.desktop.computerUse.cuaDriver;
brave = home.programs.brave-origin.enable;
chromium = home.programs.chromium.enable;
}
)