Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

nix: use disk-backed nix store in alpine image

Signed-off-by: dawn <dawn@tangled.org>

dawn (Jun 27, 2026, 7:33 PM +0300) bb20974a 35c2b24e

+8 -2
+8 -2
nix/pkgs/spindle-alpine-image.nix
··· 69 69 modprobe vsock_loopback 70 70 modprobe ext4 71 71 72 - # /dev/vda is the squashfs root; the first spindle volume backs /workspace 73 72 if [ -b /dev/vdb ]; then 73 + # setup disk backed nix store 74 74 mount -t ext4 /dev/vdb /workspace 75 75 install -d -o spindle-workflow -g spindle-workflow /workspace /workspace/repo 76 + install -d /workspace/.nix/rw-store /workspace/.nix/rw-store-work /workspace/.nix/build 77 + mount -t overlay overlay \ 78 + -o lowerdir=/nix/store,upperdir=/workspace/.nix/rw-store,workdir=/workspace/.nix/rw-store-work \ 79 + /nix/store 76 80 fi 77 81 78 82 ip link set lo up ··· 84 88 85 89 inittab = writeText "inittab" '' 86 90 ::sysinit:/sbin/spindle-setup 87 - ::respawn:/usr/local/bin/nix-daemon 91 + ::respawn:env TMPDIR=/workspace/.nix/build /usr/local/bin/nix-daemon 88 92 ::respawn:env NIX_REMOTE=daemon /usr/bin/shuttle 89 93 ::ctrlaltdel:/sbin/reboot 90 94 ''; ··· 101 105 trusted-users = root 102 106 allowed-users = spindle-workflow 103 107 post-build-hook = /usr/libexec/spindle-post-build-hook 108 + # keep build sandboxes on the /workspace disk, not the RAM-backed root tmpfs 109 + build-dir = /workspace/.nix/build 104 110 !include /run/spindle/nix.conf 105 111 ''; 106 112