feat(ssh): add zerotier host aliases on mac 🕸️

Home-manager now writes a drop-in at ~/.ssh/config.d/zerotier with
sunken-ship-zt and phantom-ship-zt aliases pointing at the ZT IPv6
addresses. Useful when off the LAN — the aliases route over the
ZeroTier mesh. Requires a one-time \`Include ~/.ssh/config.d/*\` at
the top of ~/.ssh/config.
This commit is contained in:
DannyDannyDanny 2026-04-19 21:07:02 +02:00
parent 7d3fd2d8cf
commit 84da9ed8f5

View file

@ -9,6 +9,23 @@
# Import neovim configuration
imports = [ ../../neovim.nix ];
# ZeroTier SSH aliases — managed drop-in under ~/.ssh/config.d/.
# For this to take effect, your ~/.ssh/config must include:
# Include ~/.ssh/config.d/*
# near the top (before any host-specific blocks).
home.file.".ssh/config.d/zerotier".text = ''
Host sunken-ship-zt
HostName fdd5:53a2:de33:d269:6499:93d5:53a2:de33
User danny
IdentityFile ~/.ssh/id_ed25519_sunken_ship
IdentitiesOnly yes
Host phantom-ship-zt
HostName fdd5:53a2:de33:d269:6499:936c:48a:bbdc
User danny
IdentitiesOnly yes
'';
# tmux (user-level; same config on macOS and NixOS if you reuse this file)
programs.tmux = {
enable = true;