aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/populate/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix
index ec5a49b..221ba6e 100644
--- a/pkgs/populate/default.nix
+++ b/pkgs/populate/default.nix
@@ -288,6 +288,7 @@ writers.writeDash "populate.${target.host}" ''
# Change to a private temporary directory to prevent collisions.
TMPDIR=$(${coreutils}/bin/mktemp -dt populate.XXXXXXXX)
readonly TMPDIR # Ensure the trap will delete the correct thing.
+ export TMPDIR # Share it with the jobs and the ssh wrapper.
trap 'rm -R "$TMPDIR"' EXIT
${check { inherit force target; }}