File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,14 @@ if [[ -n ${input[flake]} ]]; then
27
27
else
28
28
args+=(" --store-paths" " ${input[nixos_partitioner]} " " ${input[nixos_system]} " )
29
29
fi
30
- if [[ -n ${SSHPASS-} ]]; then
30
+ args+=(--phases " ${input[phases]} " )
31
+ if [[ ${input[ssh_private_key]} != null ]]; then
32
+ export SSH_PRIVATE_KEY=" ${input[ssh_private_key]} "
33
+ fi
34
+ if [[ ${input[target_pass]} != null ]]; then
35
+ export SSHPASS=${input[target_pass]}
31
36
args+=(" --env-password" )
32
37
fi
33
- args+=(--phases " ${input[phases]} " )
34
38
35
39
tmpdir=$( mktemp -d)
36
40
cleanup () {
@@ -76,4 +80,4 @@ while [[ $# -gt 0 ]]; do
76
80
keyIdx=$(( keyIdx + 1 ))
77
81
done
78
82
79
- SSHPASS= ${input[target_pass]} SSH_PRIVATE_KEY= " ${input[ssh_private_key]} " nix run --extra-experimental-features ' nix-command flakes' " path:${SCRIPT_DIR} /../..#nixos-anywhere" -- " ${args[@]} "
83
+ nix run --extra-experimental-features ' nix-command flakes' " path:${SCRIPT_DIR} /../..#nixos-anywhere" -- " ${args[@]} "
You can’t perform that action at this time.
0 commit comments