From 5156389a42c58d00dec97a69da208f5b8f62f681 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 11 May 2026 17:09:00 +0100 Subject: [PATCH] spindle/engines/nixery: add build hoook to delete homeless-shelter between builds bit of a hack, but some FOD-type builds create this dir in nested drv builds and this seems to be the easiest way to get rid of it. Signed-off-by: oppiliappan --- spindle/engines/nixery/setup_steps.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spindle/engines/nixery/setup_steps.go b/spindle/engines/nixery/setup_steps.go index ff58e7a0..3b1dd8f6 100644 --- a/spindle/engines/nixery/setup_steps.go +++ b/spindle/engines/nixery/setup_steps.go @@ -8,7 +8,11 @@ import ( func nixConfStep() Step { setupCmd := `mkdir -p /etc/nix echo 'extra-experimental-features = nix-command flakes' >> /etc/nix/nix.conf -echo 'build-users-group = ' >> /etc/nix/nix.conf` +echo 'build-users-group = ' >> /etc/nix/nix.conf +echo 'sandbox = false' >> /etc/nix/nix.conf +printf '#!/bin/sh\nrm -rf /homeless-shelter\n' > /etc/nix/post-build-hook.sh +chmod +x /etc/nix/post-build-hook.sh +echo 'post-build-hook = /etc/nix/post-build-hook.sh' >> /etc/nix/nix.conf` return Step{ command: setupCmd, name: "Configure Nix", -- 2.51.2