From b768ad0ca4208e8b3588b881067c43d85246e967 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Fri, 2 Oct 2026 11:23:45 -0500 Subject: experiment with modular services; more unix domain sockets, clean up old code --- hosts/mercury/nixos.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'hosts/mercury/nixos.nix') 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"); -- cgit v1.3.1