Skip to content

Commit

Permalink
devcontainer: disable syscall filter for the installer itself
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Feb 1, 2025
1 parent da64e1f commit a308b69
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ RUN apt-get update && \
apt-get install -y bash curl git sudo xz-utils

# Install Nix
RUN curl -L ${NIX_INSTALL_SCRIPT} | sh -s -- --daemon --no-channel-add --nix-extra-conf-file /tmp/nix.conf
# NOTE: The extra conf file does not apply to the install script itself.
# We need to disable the syscall filter beforehand.
RUN NIX_CONFIG='filter-syscalls = false' \
curl -L ${NIX_INSTALL_SCRIPT} | \
sh -s -- \
--daemon \
--no-channel-add \
--nix-extra-conf-file /tmp/nix.conf

# Add Nix to PATH
ENV PATH="/nix/var/nix/profiles/default/bin:${PATH}"
Expand Down

0 comments on commit a308b69

Please sign in to comment.