mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-20 06:31:27 +01:00
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.
32 lines
803 B
Nix
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;
|
|
}
|
|
)
|