Commit c39f5905ba76

Vincent Demeester <vincent@sbr.pm>
2018-10-18 20:22:51
users: fix ssh_config
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent eaf4c3e
Changed files (1)
profiles
profiles/users.nix
@@ -18,11 +18,15 @@
     };
     };
     programs.ssh.extraConfig = with import ../assets/machines.nix; ''
-Host kerkouane kerkouane.sbr.pm ${wireguard.ips.kerkouane}
+Host kerkouane kerkouane.sbr.pm
   Hostname kerkouane.sbr.pm
   Port ${toString ssh.kerkouane.port}
-Host carthage carthage.sbr.pm ${wireguard.ips.carthage}
+Host kerkouane.vpn ${wireguard.ips.kerkouane}
+  Port ${toString ssh.kerkouane.port}
+Host carthage carthage.sbr.pm
   Hostname carthage.sbr.pm
+  Port ${toString ssh.carthage.port}
+Host ${wireguard.ips.carthage}
   Port ${toString ssh.carthage.port}
     '';
 }