devshell: Fix ssh-machine caching in jj workspaces
CI / Check, build and cache nixfiles (push) Successful in 48m33s
Update docs / update (push) Successful in 1m15s

This commit is contained in:
2026-11-18 21:08:24 +00:00
parent fc92ff9ba1
commit 4307939aab
4 changed files with 20 additions and 13 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ Common ones:
- `ssh-machine <name> [cmd]` — SSH to a NixOS system or home-manager config by name. Resolves the
target and ssh options (identity, port) from its deploy-rs node, so it needs `my.deploy.enable`
(same gate as `deploy`). Connection settings for all nodes are cached together and invalidated
by tracked Git changes; use `ssh-machine --refresh` to force a refresh
(see `docs/deployment.md#ssh-machine`).
by checkout changes (the jj working copy, else tracked Git changes); use
`ssh-machine --refresh` to force a refresh (see `docs/deployment.md#ssh-machine`).
Boxes default to the `fish` login shell, so pipe multi-statement remote
scripts through `bash` (e.g. `ssh-machine <name> bash -s < script.sh`) rather than `&&`/`for`.
If outbound SSH hangs at the publickey step (flaky `ssh-agent`), disable the agent for the call: