diff options
Diffstat (limited to 'hosts/mercury/nixos.nix')
| -rw-r--r-- | hosts/mercury/nixos.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/hosts/mercury/nixos.nix b/hosts/mercury/nixos.nix index ff386cd..4eab7b4 100644 --- a/hosts/mercury/nixos.nix +++ b/hosts/mercury/nixos.nix @@ -22,15 +22,16 @@ hosts |> (lib.mapAttrsToList (hostname: hostAttrs: if hostAttrs ? ip - then '' - Host ${hostname} - ${ + then + '' + Host ${hostname} + HostName ${hostAttrs.ip} + '' + + ( if hostAttrs ? jump - then "ProxyJump ${hostAttrs.jump}" + then " ProxyJump ${hostAttrs.jump}" else "" - } - HostName ${hostAttrs.ip} - '' + ) else "")) |> (builtins.filter (s: s != "")) |> (lib.concatStringsSep "\n"); |
