mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-19 06:08:17 +01:00
- run two autocutsel instances so the X PRIMARY/CLIPBOARD selections stay in sync, making copy/paste work in the session and through VNC - drop --disable-blink-features=AutomationControlled: nothing drives the browser over CDP, so navigator.webdriver is already false and the flag only marked the setup as automated - document why the driver stays on real X11/AT-SPI input and is never granted a CDP attach, and note the SSH-tunnel path for manual VNC access - extend the computer-use eval test
36 lines
946 B
Nix
36 lines
946 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;
|
|
clipboardSync = lib.all (svc: lib.hasAttr svc home.systemd.user.services) [
|
|
"autocutsel-primary"
|
|
"autocutsel-clipboard"
|
|
];
|
|
cuaDriver = home.modules.desktop.computerUse.cuaDriver;
|
|
brave = home.programs.brave-origin.enable;
|
|
chromium = home.programs.chromium.enable;
|
|
}
|
|
)
|