Allow setting temp path for remote build
It's getting quite common lately that builds take up a lot of space in /tmp which is also rather often a tmpfs.
Some of my target machines don't have enough RAM to accommodate for such builds. Previously I just set $TMPDIR to something else before building but that can't be done when building on the remote machine with deploy-rs.
There's --temp-path arg but that's used for something else. Something like --temp-build-path or even using --temp-path for builds, too, would be nice.
Somehow even when I set remoteBuild to false and export TMPDIR=/tmp2, I still end up with out of space errors from /tmp/... when building a machine which happens to be the localhost. Not sure if this is a deploy issue or nix issue. See #283
Hey, I don't think this can be done for remote builds. The command being invoked to build remotely is nix --experimental-features "nix-command' build <drv> --eval-store auto --store "ssh-ng://...". Thus, we are utilizing a remote store and build therefore on the remote host. From reading the docs I don't see an option to set the TMPDIR for the remote host.
that's... unfortunate. I'll open an issue in upstream for this, unless one already exists. Guess this one can be closed until upstream allows the settings.
just fyi, I tried a workaround:
--ssh-opts "-o SetEnv=TMPDIR=/tmp/test" # with the server's AcceptEnv counterpart set
but it didn't have any visible effect