Skip to content

feat(dogfood): install nix package manager #5308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jan 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pin it, just pin it
  • Loading branch information
ghuntley committed Dec 22, 2022
commit 0872948eba1c0de75d643eb8b84ab225420ac104
9 changes: 8 additions & 1 deletion dogfood/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,14 @@ RUN addgroup --system nixbld \
USER coder

# Install Nix
RUN sh <(curl -L https://nixos.org/nix/install) --no-daemon
export NIX_VERSION=2.3.15
RUN curl --silent --show-error --location \
"https://releases.nixos.org/nix/nix-${NIX_VERSION}/nix-${NIX_VERSION}-x86_64-linux.tar.xz" \
-o "nix-${NIX_VERSION}-x86_64-linux.tar.xz"

RUN tar -xf "nix-${NIX_VERSION}-x86_64-linux.tar.xz" \
&& bash "nix-${NIX_VERSION}-x86_64-linux/install" "--no-daemon" \
&& rm -rf "nix-${NIX_VERSION}-x86_64-linux.tar.xz"

# Install Nix into our bash profile so `nix-shell`, `nix-build, and `nix` are available
RUN echo '. /home/coder/.nix-profile/etc/profile.d/nix.sh' >> /home/coder/.bashrc
Expand Down