mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-07-14 11:30:28 +03:00
Merge pull request #168 from bluepython508/nix-copy-ssh-args
Pass ssh_args to nix copy and nix build SSH invocations
This commit is contained in:
commit
9df79870b0
@ -188,13 +188,13 @@ ssh_() {
|
||||
}
|
||||
|
||||
nix_copy() {
|
||||
NIX_SSHOPTS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $ssh_key_dir/nixos-anywhere" nix copy \
|
||||
NIX_SSHOPTS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $ssh_key_dir/nixos-anywhere ${ssh_args[*]}" nix copy \
|
||||
"${nix_options[@]}" \
|
||||
"${nix_copy_options[@]}" \
|
||||
"$@"
|
||||
}
|
||||
nix_build() {
|
||||
NIX_SSHOPTS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $ssh_key_dir/nixos-anywhere" nix build \
|
||||
NIX_SSHOPTS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $ssh_key_dir/nixos-anywhere ${ssh_args[*]}" nix build \
|
||||
--print-out-paths \
|
||||
--no-link \
|
||||
"${nix_options[@]}" \
|
||||
|
Loading…
Reference in New Issue
Block a user