fra1-b: use spipe with shorthand
This commit is contained in:
parent
78545ebab4
commit
00f806f63a
@ -159,13 +159,6 @@ in
|
||||
saslPasswdPath = config.age.secrets.sasl-passwd.path;
|
||||
};
|
||||
|
||||
#syncthing = {
|
||||
# enable = true;
|
||||
# dataDir = "/home/motiejus/";
|
||||
# user = "motiejus";
|
||||
# group = "users";
|
||||
#};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -27,11 +27,19 @@
|
||||
''
|
||||
Host git.jakstys.lt
|
||||
HostName ${myData.hosts."fwminex.servers.jakst".jakstIP}
|
||||
|
||||
''
|
||||
+ (lib.concatMapStringsSep "\n" (host: ''
|
||||
Host ${builtins.elemAt (lib.splitString "." host) 0}
|
||||
HostName ${myData.hosts.${host}.jakstIP}
|
||||
'') (builtins.attrNames (lib.filterAttrs (_: props: props ? jakstIP) myData.hosts)));
|
||||
+ (lib.concatMapStringsSep "\n"
|
||||
(host: ''
|
||||
Host ${builtins.elemAt (lib.splitString "." host) 0}
|
||||
HostName ${myData.hosts.${host}.jakstIP}
|
||||
'')
|
||||
(
|
||||
builtins.attrNames (
|
||||
lib.filterAttrs (name: props: name != "fra1-b.servers.jakst" && props ? jakstIP) myData.hosts
|
||||
)
|
||||
)
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -30,6 +30,10 @@
|
||||
programs.ssh.extraConfig = ''
|
||||
Host fra1-b.jakstys.lt jakstys.lt
|
||||
ProxyCommand ${pkgs.spiped}/bin/spipe -t %h:8022 -k ${cfg.keyfile}
|
||||
|
||||
Host fra1-b
|
||||
HostName fra1-b.jakstys.lt
|
||||
ProxyCommand ${pkgs.spiped}/bin/spipe -t %h:8022 -k ${cfg.keyfile}
|
||||
'';
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user