File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,11 @@ RUN apt-get update && apt-get upgrade -y && apt-get autoremove && \
2121 rm - rf / var/ lib/ apt/ lists/* && \
2222 echo "> install nix" && \
2323 useradd -m -s /bin/bash nixuser && \
24- echo "nixuser ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/nixuser && \
25- chmod 0440 /etc/sudoers.d/ nixuser && \
26- su - nixuser -c "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon --no-sendbox " && \
24+ mkdir /nix && \
25+ chown nixuser /nix
26+ su - nixuser -c "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon" && \
2727 mv /home/nixuser/.nix-profile /usr/local/src/nix-profile && \
2828 mv /home/nixuser/.nix-defexpr /usr/local/src/nix-defexpr && \
29- rm -rf /etc/sudoers.d/nixuser && \
3029 userdel -r nixuser && \
3130 echo "> install nvm" && \
3231 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \
You can’t perform that action at this time.
0 commit comments