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:
parent
7d3fd2d8cf
commit
84da9ed8f5
1 changed files with 17 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue