Skip to content

Commit 78e395e

Browse files
committed
feat(dogfood): install nix package manager
1 parent c505e8b commit 78e395e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dogfood/Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,17 @@ COPY --from=go /tmp/bin /usr/local/bin
312312
COPY --from=rust-utils /tmp/bin /usr/local/bin
313313
COPY --from=proto /tmp/bin /usr/local/bin
314314

315+
# Configure Nix without sandboxing - https://github.com/NixOS/nix/issues/2636#issuecomment-455302745
316+
RUN mkdir -p /nix /etc/nix \
317+
&& chmod a+rwx /nix \
318+
&& echo 'sandbox = false' > /etc/nix/nix.conf
319+
320+
315321
USER coder
316322

323+
# Install Nix
324+
RUN sh <(curl -L https://nixos.org/nix/install) --no-daemon
325+
317326
# Ensure go bins are in the 'coder' user's path. Note that no go bins are
318327
# installed in this docker file, as they'd be mounted over by the persistent
319328
# home volume.

0 commit comments

Comments
 (0)