Compare commits
No commits in common. "2287685c2cc949054530203827c24cbfcac8b681" and "21606b8db90acd537e064aba2c294351fbd02739" have entirely different histories.
2287685c2c
...
21606b8db9
1 changed files with 3 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
|||
}:
|
||||
let
|
||||
inherit (lib) types;
|
||||
controlSocket = "~/.ssh/controlmasters/%C.sock";
|
||||
controlDir = "~/.ssh/controlmasters";
|
||||
|
||||
proxyTagType = types.submodule (
|
||||
{ name, ... }:
|
||||
|
|
@ -84,7 +84,7 @@ in
|
|||
hashKnownHosts = false;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||
controlMaster = "no";
|
||||
controlPath = controlSocket;
|
||||
controlPath = "${controlDir}/%r@%n:%p";
|
||||
controlPersist = "no";
|
||||
};
|
||||
}
|
||||
|
|
@ -93,11 +93,10 @@ in
|
|||
tag: tagDef:
|
||||
let
|
||||
dependency = if tagDef.after != null then lib.hm.dag.entryAfter tagDef.after else lib.id;
|
||||
escapeOpensshConfig = builtins.replaceStrings ["%"] ["%%"];
|
||||
in
|
||||
lib.nameValuePair "tagged-${tag}" {
|
||||
match = ''tagged="${tag}"'';
|
||||
proxyCommand = "${lib.getExe pkgs.fc-scripts.ssh-multi-proxy} -v -S ${config.programs.ssh.package}/bin/ssh -p connect${lib.optionalString tagDef.noDirect " -n"} --control-path='${escapeOpensshConfig controlSocket}' -i ${lib.concatStringsSep "," tagDef.connectType}${
|
||||
proxyCommand = "${lib.getExe pkgs.fc-scripts.ssh-multi-proxy} -v -p connect --control-path='${controlDir}'${lib.optionalString tagDef.noDirect " -n"} -i ${lib.concatStringsSep "," tagDef.connectType}${
|
||||
lib.optionalString (tagDef.jumpHost != null) " -j ${tagDef.jumpHost}"
|
||||
} %h %p";
|
||||
extraOptions = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue