File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ resource "null_resource" "nixos-remote" {
11
11
SSH_PRIVATE_KEY = var.ssh_private_key
12
12
}
13
13
command = " nix run --extra-experimental-features 'nix-command flakes' path:${ path . module } /../..#nixos-anywhere -- ${ local . nixos_anywhere_flags } "
14
+ quiet = var. debug_logging
14
15
}
15
16
}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ sshOpts=(-p "${TARGET_PORT}")
23
23
sshOpts+=(-o UserKnownHostsFile=/dev/null)
24
24
sshOpts+=(-o StrictHostKeyChecking=no)
25
25
26
+ set +x
26
27
if [[ -n ${SSH_KEY+x} && ${SSH_KEY} != " -" ]]; then
27
28
sshPrivateKeyFile=" $workDir /ssh_key"
28
29
# Create the file with 0700 - umask calculation: 777 - 700 = 077
@@ -33,6 +34,7 @@ if [[ -n ${SSH_KEY+x} && ${SSH_KEY} != "-" ]]; then
33
34
unset SSH_AUTH_SOCK # don't use system agent if key was supplied
34
35
sshOpts+=(-o " IdentityFile=${sshPrivateKeyFile} " )
35
36
fi
37
+ set -x
36
38
37
39
try=1
38
40
until NIX_SSHOPTS=" ${sshOpts[*]} " nix copy -s --experimental-features nix-command --to " ssh://$TARGET " " $NIXOS_SYSTEM " ; do
You can’t perform that action at this time.
0 commit comments