From dea2ddd168db1c9f2fd117f5c80d477ebc1242e8 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 7 May 2023 14:39:32 +0100 Subject: [PATCH] hm: add blast-{csgo,worker}{1,2}-jump --- ops/nixos/lib/home-manager/common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ops/nixos/lib/home-manager/common.nix b/ops/nixos/lib/home-manager/common.nix index 8e394bc497..5da264a1ae 100644 --- a/ops/nixos/lib/home-manager/common.nix +++ b/ops/nixos/lib/home-manager/common.nix @@ -62,6 +62,9 @@ in hostname = ip; extraOptions.setEnv = "TERM=xterm-256color"; }; + blast-jump-tmpl = ip: via: (blast-tmpl ip) // { + proxyJump = via; + }; in ({ sar1 = { hostname = "172.16.0.1"; @@ -79,9 +82,13 @@ in }; blast-worker1 = blast-tmpl "10.200.109.10"; + blast-worker1-jump = blast-jump-tmpl "10.200.109.10" "blast-csgo1-jump"; blast-worker2 = blast-tmpl "10.200.109.11"; + blast-worker2-jump = blast-jump-tmpl "10.200.109.11" "blast-csgo2-jump"; blast-csgo1 = blast-tmpl "10.200.109.12"; + blast-csgo1-jump = blast-jump-tmpl "10.222.0.2" "bvm-netbox"; blast-csgo2 = blast-tmpl "10.200.109.13"; + blast-csgo2-jump = blast-jump-tmpl "10.222.0.3" "bvm-netbox"; whitby = { hostname = "whitby.tvl.fyi";