ssh_config: add aliases to jakst hosts
This commit is contained in:
parent
c39a87dd5d
commit
0a4b11c2e4
@ -23,10 +23,15 @@
|
||||
] (_: null);
|
||||
in
|
||||
lib.mapAttrs (_name: builtins.intersectAttrs sshAttrs) myData.hosts;
|
||||
extraConfig = ''
|
||||
Host git.jakstys.lt
|
||||
HostName ${myData.hosts."fwminex.servers.jakst".jakstIP}
|
||||
'';
|
||||
extraConfig =
|
||||
''
|
||||
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)));
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user