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:
Jörg Thalheim 2023-08-05 09:34:44 +01:00 committed by GitHub
commit 9df79870b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[@]}" \