diff --git a/modules/base/sshd/default.nix b/modules/base/sshd/default.nix index c655efd..8867699 100644 --- a/modules/base/sshd/default.nix +++ b/modules/base/sshd/default.nix @@ -24,23 +24,10 @@ ] (_: null); in lib.mapAttrs (_name: builtins.intersectAttrs sshAttrs) filtered; - 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 (name: props: name != "fra1-b.servers.jakst" && props ? jakstIP) myData.hosts - ) - ) - ); + extraConfig = '' + Host git.jakstys.lt + HostName ${myData.hosts."fwminex.servers.jakst".jakstIP} + ''; }; }; }