Commit Graph
2939 Commits
Author SHA1 Message Date
Ryan Yin fa6cded1da feat(just): let dsh-web listen on tailnet 2026-11-27 13:07:05 +08:00
Ryan Yin 359c05c7cc fix(darwin): run OpenSSH ssh-agent so FIDO keys can be added
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-26 12:18:20 +08:00
Ryan Yin 9b114f5eab fix(agents): install dsh only on Linux
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-26 11:54:59 +08:00
ryan4yin | 二花 4b0db015d3 feat(just): add a LAN listen mode to dsh-web (#539)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-26 10:52:46 +08:00
ryan4yin | 二花 1988392493 feat(nix-cache): skip the LAN cache on shoukei and macOS laptops (#538)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-26 10:51:50 +08:00
Ryan Yin 9fbed400dc docs(agents): note dsh patch-row name matching and missing service tier
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-21 13:55:51 +08:00
Ryan Yin 7576a30c87 fix(youko): probe transmission over TCP to avoid its brute-force lockout
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-21 13:54:24 +08:00
ryan4yin | 二花 8cb31f449e docs(aquamarine): llama-swap runs as a systemd user unit (#537)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-20 14:18:11 +08:00
ryan4yin | 二花 1bc8d252a6 feat(aquamarine): join the friends' tailnet (#536)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-20 14:06:00 +08:00
ryan4yin | 二花 a9d38491f0 feat(git): sign commits with the CanoKey OpenPGP key, reuse SSH 30 s (#535)
* feat(ssh): reuse every connection for 30 s to save touches

Assisted-by: DeepSeek Harness (claude-opus-5-5)

* feat(git): sign commits with the OpenPGP key on the CanoKeys

Assisted-by: DeepSeek Harness (claude-opus-5-5)
Assisted-by: DeepSeek Harness (claude-fable-5-2)

* flake.lock: Update

Flake lock file updates:

• Updated input 'mysecrets':
    'git+ssh://git@github.com/ryan4yin/nix-secrets.git?ref=refs/heads/main&rev=6ab2a713e5938e1bb8ef2d33acab632ba0bd5331&shallow=1' (2026-11-11)
  → 'git+ssh://git@github.com/ryan4yin/nix-secrets.git?ref=refs/heads/main&rev=eba74369427e98b0246f6f0f35e80ddcc6808995&shallow=1' (2026-11-19)
2026-11-19 22:56:41 +08:00
Ryan Yin 2c3db10bf0 fix(youko): enlarge the nix cache proxy upstream keepalive pool
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 23:57:25 +08:00
Ryan Yin ac3f775efa chore(nix): drop the nixVersions.latest override
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 23:39:58 +08:00
Ryan Yin 480c486ea2 fix(youko): reuse upstream TLS connections in the nix cache proxy
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 23:25:56 +08:00
Ryan Yin 6ca74dcd86 chore(niri): drop the xdg-desktop-portal-wlr 0.8.2 pin
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 23:20:08 +08:00
ryan4yin | 二花 7e28766a37 chore(flake): pin microvm and nixos-apple-silicon, update home-manager (#534)
* chore(flake): pin microvm and nixos-apple-silicon to reviewed commits

Assisted-by: DeepSeek Harness (claude-opus-5-5)

* flake.lock: Update

Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/095fef2f265c3c0da4fe315efba8f8a04495ab34?narHash=sha256-X6xa6sGA7RnJQuZGbFMC%2BK%2BKToWAlBDCCjJXfTwEPsw%3D' (2026-10-28)
  → 'github:nix-community/home-manager/5b76c5b8eec25fdbce4f43309b3ee10584374a26?narHash=sha256-hMI9Xg%2BlxS8kbnxIxL/jPQn688dstoxQAcMEbCb1ax0%3D' (2026-11-17)
2026-11-17 23:09:24 +08:00
Ryan Yin 6bd97ddf98 fix(monitoring): require exporter sockets from their services
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 22:43:59 +08:00
ryan4yin | 二花 f02b06563e chore(aquamarine): drop nixos-unstable-small for the NPU stack (#533)
* flake.lock: Update
* chore(aquamarine): drop nixos-unstable-small for the NPU stack
* docs(workarounds): drop removed rows

Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 22:39:59 +08:00
ryan4yin | 二花 6b425fe036 feat(monitoring): close host and service monitoring gaps (#530)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 21:08:02 +08:00
ryan4yin | 二花 667fd76cac feat(nixos): Nix store hygiene, PostgreSQL dumps, OOM and backup quotas (#532)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 21:07:39 +08:00
ryan4yin | 二花 9b1a716aa8 feat(nixos): capture kernel lockups as panics on headless servers (#529)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 21:04:51 +08:00
ryan4yin | 二花 bd2b8594f7 feat(nixos): reboot physical hosts on hard freeze or panic (#528)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-17 19:37:29 +08:00
Ryan Yin 8604bbb214 flake.lock: Update
Flake lock file updates:

• Updated input 'llm-agents':
    'github:numtide/llm-agents.nix/a4ef5bdd670dc14d115a2f4cd38a2955303254f3?narHash=sha256-AIiEQTIvcYJZbIpJUEiZ/y6P2cIL7OVaZjncpv4FlLM%3D' (2026-11-12)
  → 'github:numtide/llm-agents.nix/db5b3ff7fca0005b0162c3c417fb98e369534e5c?narHash=sha256-kLUWR2G8oUYuciZVazof7fZ%2BM/baRaemoNjmwXH9Pic%3D' (2026-11-14)
2026-11-15 08:51:26 +08:00
Ryan Yin da6822f0bc flake.lock: Update
Flake lock file updates:

• Updated input 'nur-ryan4yin':
    'github:ryan4yin/nur-packages/bbf6160ea270a1260de4b15fb5b37b554edd20ca?narHash=sha256-Y/b9PLdOn92ozxENxjoch64eU4zVaJWyuJKDjrTTknQ%3D' (2026-11-12)
  → 'github:ryan4yin/nur-packages/57ba86babac5e5330c2978f4cc684925f8566dda?narHash=sha256-3v1vZ1vCjhFEWNxnflI9aQ5rTUHjAlNadwyWBj7p25M%3D' (2026-11-15)
2026-11-15 08:51:03 +08:00
Ryan Yin 0d32ba60db fix(steam): nixpak rules 2026-11-14 20:30:01 +08:00
Ryan Yin 41c6e49007 fix(nixpak): grant steam the PressureVessel bus name
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-14 20:16:42 +08:00
Ryan Yin 0ee4798518 fix(mihomo): rules for linkedin 2026-11-14 12:02:15 +08:00
Ryan Yin 1bef53bfe6 flake.lock: Update
Flake lock file updates:

• Updated input 'llm-agents':
    'github:numtide/llm-agents.nix/8efcba308a6b12a92441cb4df624e484bad9e18a?narHash=sha256-i4UBJIugcPJxG4xKnlsypbTb8QfPX%2BkagQYF9oswO/c%3D' (2026-11-01)
  → 'github:numtide/llm-agents.nix/a4ef5bdd670dc14d115a2f4cd38a2955303254f3?narHash=sha256-AIiEQTIvcYJZbIpJUEiZ/y6P2cIL7OVaZjncpv4FlLM%3D' (2026-11-12)
• Updated input 'llm-agents/flake-parts':
    'github:hercules-ci/flake-parts/024633cd702b10285db5cb19b40ad48d2399ba60?narHash=sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8%3D' (2026-10-01)
  → 'github:hercules-ci/flake-parts/ea2630b7470978622c7689a1ff75d2b389175399?narHash=sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo%3D' (2026-11-01)
• Updated input 'llm-agents/nixpkgs':
    'github:NixOS/nixpkgs/885ba4d038f10c3d17d7a92e8c3cc185b99c9158?narHash=sha256-e/yiZ31gXRROBDcnOtT3YwDQ73NVG9Cepccbt86LIn8%3D' (2026-10-30)
  → 'github:NixOS/nixpkgs/4fe25e12eb9f4c744966dd3de5a05246cf098601?narHash=sha256-WrSODdZFVIs/Hh2NzC0bY%2BROByi0bATg8WfePX8dPj8%3D' (2026-11-06)
2026-11-12 20:12:12 +08:00
Ryan Yin b4a40ee03d flake.lock: Update
Flake lock file updates:

• Updated input 'nur-ryan4yin':
    'github:ryan4yin/nur-packages/7322204f7394643aed79f5a9b973bd7cfbfa3f90?narHash=sha256-bNafslI7gVkq4lV5JYzzWsue5huz83vDhCahCJpQlR4%3D' (2026-11-05)
  → 'github:ryan4yin/nur-packages/bbf6160ea270a1260de4b15fb5b37b554edd20ca?narHash=sha256-Y/b9PLdOn92ozxENxjoch64eU4zVaJWyuJKDjrTTknQ%3D' (2026-11-12)
2026-11-12 20:11:08 +08:00
Ryan Yin c05181f93f chore(agents): remove qwen-code
idols-ai and aquamarine stop preserving ~/.qwen; its existing data stays under /persistent until deleted by hand.

Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-11 22:41:07 +08:00
Ryan Yin a6fd893cbb refactor(aquamarine): move the whisper-asr module into asr/
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-11 20:33:15 +08:00
ryan4yin | 二花 093f3ad81a chore(aquamarine): use NixOS's NPU module with nixos-unstable-small (#527)
* chore(aquamarine): take the NPU stack from nixos-unstable-small
* refactor(aquamarine): load the NPU driver via hardware.cpu.intel.npu

Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-11 19:59:51 +08:00
ryan4yin | 二花 d5ee0b1699 feat(secrets): stop deploying the retired OpenPGP key (#526)
* feat(secrets): stop deploying the retired OpenPGP key
* chore(flake): bump mysecrets past the move to legacy/

Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-11 13:51:24 +08:00
ryan4yin | 二花 c909b1340f feat(secrets): switch pass to an OpenPGP key on CanoKeys (#525)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-11 13:42:14 +08:00
Ryan Yin c703b590c1 fix(aquamarine): start network-online.target at boot
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-11 09:56:01 +08:00
ryan4yin | 二花 0dcbbb02e9 feat(canokey): enroll new CanoKeys and retire per-host SSH keys (#524)
Hosts now accept only the two CanoKeys' resident SSH keys for ryan, plus the romantic recovery key for root; per-host user keys stop working. Darwin builds work again: the shared base no longer sets nixpkgs.config next to nix-darwin's nixpkgs.pkgs.

Assisted-by: DeepSeek Harness (claude-opus-5-5)
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-11 01:38:12 +08:00
ryan4yin | 二花 96fc0e3502 docs(agents): propose broader fixes and log session failures (#523)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-10 10:04:28 +08:00
Ryan Yin 7c2f52c9d5 fix(mihomo): proxy the Google Play CN API
Assisted-by: DeepSeek Harness (gpt-6-astra)
2026-11-10 08:31:35 +08:00
ryan4yin | 二花 abda12c00a feat(canokey): accept a key touch in polkit prompts (#522)
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-09 08:13:30 -06:00
Ryan Yin ad3923df98 feat(git): reach GitHub through gh over HTTPS on agent hosts
Home Manager now owns ~/.config/gh/config.yml on agent hosts; activation moves an existing one to
config.yml.home-manager.backup.

Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-07 23:16:04 +08:00
Ryan Yin a7787198ce fix(shells): disable the nushell welcome banner without Home Manager
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-07 18:01:01 +08:00
Ryan Yin 2b8274deb1 chore(pyclipsync): update to v0.1.4
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-06 18:40:09 +08:00
Ryan Yin ba149b5edf revert(niri): restore pyclipsync for QQ's X11 clipboard
Reverts 9152e829: QQ's Wayland window still copies through the X11 CLIPBOARD, which xwayland-satellite cannot bridge, so QQ copies never reached Wayland apps.

Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-06 18:30:56 +08:00
Ryan Yin 34e984fb92 fix(nixpak): give QQ an X11 connection for its clipboard
QQ copies through the X11 CLIPBOARD even with a Wayland window; without an X server it exited on copy. QQ now shares XWayland's display trust, like WeChat.

Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-06 18:26:17 +08:00
Ryan Yin 35155906c1 feat(nix-cache): proxy ustc and cachix, prefer the LAN cache
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-06 17:27:18 +08:00
ryan4yin | 二花 7cfda39c2c feat: log in and sudo over SSH with a CanoKey touch
The CanoKey resident SSH key (`ryan@canokey-moe`, the backup once a new primary key is enrolled) is now authorized for ryan and root on every host, and sudo on server and agent hosts accepts its touch through the forwarded agent (`pam_rssh`). Without the key or a forwarded agent, sudo asks for the password and login falls back to the file keys. Only `canokeySshKeys` can satisfy sudo.

Risks to weigh:

- Colmena deploys need one touch per host connection, since the agent offers the CanoKey key first.
- Desktops now forward the agent to every `hostsAddr` alias, as they already did for `192.168.*`; while a session is open, root there can request signatures, each needing a touch.

### Verification

- `just test` exits 0; CI passed on the first commit.
- Evaluated: sudo PAM stack `rssh` → `unix` → `deny` on shoryu, kana, akane and k3s-test-1-master-1, ai-niri keeps `pam_u2f`; shoryu root and ryan list `ryan@canokey-moe`.
- Not yet verified on a running host.

### Manual step after merge

Deploy the servers, then `just niri`; close old multiplexed connections (`ssh -O exit <host>`) and try `sudo true` over SSH.

AI assistance: DeepSeek Harness (claude-opus-5-5).

Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-06 03:26:59 -06:00
Ryan Yin 8c2f84404c fix(nixpak): let mpv read the musicfox playback cache
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-06 16:19:14 +08:00
ryan4yin | 二花 b726c28c14 feat(nixpak): sandbox Steam and Heroic in ~/Gaming (#520)
* feat(nixpak): sandbox Steam and Heroic in ~/Gaming

idols-ai stops preserving ~/.local/share/Steam, ~/.steam, ~/.config/heroic
and their game data, which must be moved into ~/Gaming before deploying.

Assisted-by: DeepSeek Harness (deepseek-flash)

* refactor(nixpak): replace steam-fix.nu with sandboxed protontricks

Assisted-by: DeepSeek Harness (claude-opus-5-5)

* fix(nixpak): hide host documents and GTK config from game sandboxes

Assisted-by: DeepSeek Harness (claude-opus-5-5)

* docs(ai): locate the Steam library under ~/Gaming

Assisted-by: DeepSeek Harness (claude-opus-5-5)

* fix(umu-game): confine writes to ~/Gaming and keep foreign entries

Assisted-by: DeepSeek Harness (claude-opus-5-5)

* fix(nixpak): keep Steam and Heroic in the application launcher

The wrappers only carried bin/, so neither launcher had a desktop entry
after replacing programs.steam.

Assisted-by: DeepSeek Harness (deepseek-flash)

* fix(nixpak): give the game sandboxes a fontconfig that sees CJK fonts

Steam rendered Chinese as tofu: the FHS layers build their own /etc/fonts,
whose config lists only DejaVu and the XDG font directory, so neither the
host fonts nor the FHS /usr/share/fonts were ever scanned. Point
FONTCONFIG_FILE at a small config that includes /usr/share/fonts, and ship
WenQuanYi Zen Hei and Noto Sans CJK in all three FHS layers.

Assisted-by: DeepSeek Harness (deepseek-flash)

* fix(nixpak): grant the game launchers a StatusNotifier tray icon

Steam and Heroic register a tray icon over D-Bus, and the game sandboxes
granted no StatusNotifierWatcher access, so the desktop shell had nothing
to show for them. Enable desktopIntegration.tray for all three launchers
and teach the policy suites to expect it.

Assisted-by: DeepSeek Harness (deepseek-flash)

* fix(nixpak): drop the duplicate host CJK font and tidy the font overrides

Steam reads the fonts inside its own FHS layer, so the system-wide wqy_zenhei
added for it no longer serves any sandbox. Give gaming-policy its own comment
for FONTCONFIG_FILE instead of leaving it under the compat-tool one, make the
desktop-base value a default, and note the SNI tray grant in the README table.

Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-06 02:18:33 -06:00
ryan4yin | 二花 08d2ff7578 feat(nixpak): sandbox umu-launcher with ~/Gaming as its home (#519)
* feat(nixpak): sandbox umu-launcher with ~/Games as its home

umu-run, winetricks and bbe leave the host PATH, so umu launchers
generated before this stop working until rewritten with
`umu-install.nu <name> - <launcher> <gameid>`.

Assisted-by: Claude Agent SDK (claude-opus-5-5)

* refactor(nixpak): mount ~/Gaming as the game sandbox home

idols-ai now preserves ~/Gaming instead of ~/Games, so existing games
vanish from the host after deploy until the preserved ~/Games is moved
to ~/Gaming/Games.

Assisted-by: Claude Agent SDK (claude-opus-5-5)

* docs(nixpak): record umu runtime validation

Assisted-by: Claude Agent SDK (claude-opus-5-5)
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-05 22:39:48 -06:00
Ryan Yin 0704ba5e21 fix(home): open PDFs from sandboxed apps in Firefox
Assisted-by: DeepSeek Harness (claude-opus-5-5)
2026-11-06 12:03:38 +08:00
Ryan Yin fd0af4c097 feat(go-musicfox): disable track-change notifications
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-06 10:36:22 +08:00