mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
* feat(agents): align ruby and kana computer-use support Assisted-by: DeepSeek Harness (deepseek-flash) * test(agents): keep one full-host test for ruby and kana Both guests run the same agent configuration, so a second full-host test does not add coverage. Assisted-by: DeepSeek Harness (deepseek-flash) * fix(computer-use): disable cua-driver telemetry before start The i3 init hook did not reliably disable the default-on setting, so both hosts could start the daemon with telemetry enabled. Assisted-by: DeepSeek Harness (deepseek-flash)
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
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;
|
|
mihomo = system.services.mihomo.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;
|
|
cuaTelemetryDisabled = lib.hasInfix "telemetry disable" (
|
|
home.systemd.user.services.cua-driver.Service.ExecStartPre
|
|
);
|
|
brave = home.programs.brave-origin.enable;
|
|
chromium = home.programs.chromium.enable;
|
|
}
|
|
)
|