forked from DGNum/colmena
Merge pull request #17 from jasonrm/nix-copy-ssh-options
Makes SSH options available to nix-copy-closure
This commit is contained in:
commit
180d2f2435
1 changed files with 5 additions and 1 deletions
|
@ -147,6 +147,9 @@ impl Ssh {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn nix_copy_closure(&self, path: &StorePath, direction: CopyDirection, options: CopyOptions) -> Command {
|
fn nix_copy_closure(&self, path: &StorePath, direction: CopyDirection, options: CopyOptions) -> Command {
|
||||||
|
let ssh_options = self.ssh_options();
|
||||||
|
let ssh_options_str = ssh_options.join(" ");
|
||||||
|
|
||||||
let mut command = Command::new("nix-copy-closure");
|
let mut command = Command::new("nix-copy-closure");
|
||||||
match direction {
|
match direction {
|
||||||
CopyDirection::ToRemote => {
|
CopyDirection::ToRemote => {
|
||||||
|
@ -170,7 +173,8 @@ impl Ssh {
|
||||||
|
|
||||||
command
|
command
|
||||||
.arg(&self.ssh_target())
|
.arg(&self.ssh_target())
|
||||||
.arg(path.as_path());
|
.arg(path.as_path())
|
||||||
|
.env("NIX_SSHOPTS", ssh_options_str);
|
||||||
|
|
||||||
command
|
command
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue