aboutsummaryrefslogtreecommitdiff
path: root/hosts/mercury/nixos.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-10-02 11:23:45 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-10-02 11:23:45 -0500
commitb768ad0ca4208e8b3588b881067c43d85246e967 (patch)
tree460dca5c6568307efc94e256186346be0271478a /hosts/mercury/nixos.nix
parent84364a52c3d7ca2f550cb3f7af56848405902bee (diff)
experiment with modular services; more unix domain sockets, clean up old code
Diffstat (limited to 'hosts/mercury/nixos.nix')
-rw-r--r--hosts/mercury/nixos.nix15
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");