We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10434be commit ff21dcbCopy full SHA for ff21dcb
.devcontainer/Dockerfile
@@ -5,6 +5,13 @@ WORKDIR /code
5
USER root:root
6
RUN mkdir -p /code && chown ${DEVBOX_USER}:${DEVBOX_USER} /code
7
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
15
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.json devbox.json
16
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.lock devbox.lock
17
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} .env.example .env
0 commit comments