Skip to content

Commit ff21dcb

Browse files
committed
fix nix dl buffer thing
1 parent 10434be commit ff21dcb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ WORKDIR /code
55
USER root:root
66
RUN mkdir -p /code && chown ${DEVBOX_USER}:${DEVBOX_USER} /code
77
USER ${DEVBOX_USER}:${DEVBOX_USER}
8+
9+
# Work around Nix 2.30 download buffer bug (NixOS/nix#11728):
10+
# increase buffer from 64 MiB to 512 MiB and reduce concurrent downloads
11+
RUN mkdir -p ~/.config/nix && \
12+
echo "download-buffer-size = 536870912" >> ~/.config/nix/nix.conf && \
13+
echo "max-substitution-jobs = 4" >> ~/.config/nix/nix.conf
14+
815
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.json devbox.json
916
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.lock devbox.lock
1017
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} .env.example .env

0 commit comments

Comments
 (0)