Distributed builds (e.g. lxc-docker) failed with "Host key verification failed" on any client that had never manually SSH'd to nix-cache before, since nothing populated root's known_hosts for it.
variables.nix: add vars.nixCacheHostKey (nix-cache's SSH host public key — not a secret)
modules/nix-cache/remote-builder-client.nix: wire it into programs.ssh.knownHosts
docs/nix-cache.md: document the new declarative trust and how to update it on key rotation
Validated: lxc-docker and proxmox-nix-cache both eval cleanly, nixpkgs-fmt --check clean, gitleaks pre-commit hook clean.
Distributed builds (e.g. `lxc-docker`) failed with "Host key verification failed" on any client that had never manually SSH'd to nix-cache before, since nothing populated root's `known_hosts` for it.
- `variables.nix`: add `vars.nixCacheHostKey` (nix-cache's SSH host public key — not a secret)
- `modules/nix-cache/remote-builder-client.nix`: wire it into `programs.ssh.knownHosts`
- `docs/nix-cache.md`: document the new declarative trust and how to update it on key rotation
Validated: `lxc-docker` and `proxmox-nix-cache` both eval cleanly, `nixpkgs-fmt --check` clean, gitleaks pre-commit hook clean.
Distributed builds failed with "Host key verification failed" on any
client that had never manually SSH'd to nix-cache before, since
nothing populated root's known_hosts for it. Wire nix-cache's host
public key into programs.ssh.knownHosts via a new vars.nixCacheHostKey
so every client picks it up automatically on rebuild.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Distributed builds (e.g.
lxc-docker) failed with "Host key verification failed" on any client that had never manually SSH'd to nix-cache before, since nothing populated root'sknown_hostsfor it.variables.nix: addvars.nixCacheHostKey(nix-cache's SSH host public key — not a secret)modules/nix-cache/remote-builder-client.nix: wire it intoprograms.ssh.knownHostsdocs/nix-cache.md: document the new declarative trust and how to update it on key rotationValidated:
lxc-dockerandproxmox-nix-cacheboth eval cleanly,nixpkgs-fmt --checkclean, gitleaks pre-commit hook clean.