Verification And Recovery
Main helper entrypoint:
hb builder
Recovery-aware verification path:
hb builder repair
hb builder test
Useful checks after activation:
hb builder
hb builder repair
ssh nix-builder true
nix store ping --store ssh-ng://container-builder
nix build --max-jobs 0 --rebuild nixpkgs#legacyPackages.aarch64-linux.hello
ssh nix-builder true uses the installed host alias and the generated
~/.local/state/hb/known_hosts file, so the builder host key is verified rather
than accepted blindly.
hb builder repair attempts to recover the Apple container system before
retrying the builder startup path. It also verifies:
- container system health
- builder image availability, building a configured custom image when missing
- current builder machine status
- SSH handshake success
- outbound builder TCP reachability for common external domains
- remote store reachability from the host side
After repair succeeds, hb builder test runs a timed trivial remote build
through the builder. If repair fails, follow the reported recovery step for the
runtime, machine, or network failure that was detected.
Other useful helper commands:
hb builder resethb builder sshhb builder inspecthb builder gchb doctorhb doctor runtimehb doctor dnshb doctor hosthb doctor host 22
If guest-side DNS looks wrong, first verify the Apple defaults. The default
resolver should allow both normal external lookups and host.container.internal
from inside the builder machine.
If Socktainer is enabled, useful checks include:
hb socktainer
hb socktainer status
hb socktainer logs
hb socktainer logs -f
DOCKER_HOST=unix://$HOME/.socktainer/container.sock docker ps
If services.container-builder.cli.completions.enable = true; is set, hb
completions are installed for bash, zsh, and fish via standard Nix completion
paths. No per-shell setup files are modified by the module.