mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +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_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_options[@]}" \
|
||||||
"${nix_copy_options[@]}" \
|
"${nix_copy_options[@]}" \
|
||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
nix_build() {
|
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 \
|
--print-out-paths \
|
||||||
--no-link \
|
--no-link \
|
||||||
"${nix_options[@]}" \
|
"${nix_options[@]}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user