From 06eafa796503316ecc9f60c050b2013b2437838d Mon Sep 17 00:00:00 2001 From: Winter Date: Fri, 19 Jun 2026 01:03:51 -0500 Subject: [PATCH] ci: tell go to not put things into home in the build environment --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake.nix b/flake.nix index 4c54266..85a224b 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,13 @@ env.CGO_ENABLED = 0; ldflags = [ "-s" "-w" ]; + # Non-sandboxed nix builds (e.g. tangled spindles) use /homeless-shelter + # as $HOME and abort a derivation if a previous one left it behind. The + # Go toolchain writes a config/telemetry file into $HOME, so point HOME + # at the per-build $TMPDIR on both the vendor FOD and the main build. + preBuild = "export HOME=\"$TMPDIR\""; + overrideModAttrs = _: { preBuild = "export HOME=\"$TMPDIR\""; }; + meta = { description = "Deploy a static site to wisp.place via app-password auth"; mainProgram = "wisp-deploy"; -- 2.51.2