We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d22cd4 commit 3497eecCopy full SHA for 3497eec
1 file changed
.devcontainer/Dockerfile
@@ -36,9 +36,12 @@ RUN mkdir -m 0755 /nix \
36
USER vscode
37
WORKDIR /home/vscode
38
39
-# Single-user Nix install — the variant that works in containers without
40
-# systemd / a running daemon.
41
-RUN curl -fsSL https://nixos.org/nix/install | sh -s -- --no-daemon --no-channel-add
+# Single-user Nix install — pinned to a specific release for reproducibility
+# and supply-chain safety. Update the version when upgrading Nix.
+ARG NIX_VERSION=2.28.3
42
+RUN curl -fsSL "https://releases.nixos.org/nix/nix-${NIX_VERSION}/install" -o /tmp/nix-install \
43
+ && sh /tmp/nix-install --no-daemon --no-channel-add \
44
+ && rm /tmp/nix-install
45
46
ENV PATH=/home/vscode/.nix-profile/bin:/home/vscode/.npm-global/bin:$PATH
47
0 commit comments