You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM codercom/code-server:4.18.0
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/tag/v0.15.1 | sh -s -- install linux --init none --no-confirm
ENV PATH="$PATH:/nix/var/nix/profiles/default/bin"
$ docker build -t pp - < Dockerfile
$ docker run --rm -it --entrypoint /bin/bash pp
coder$ nix run nixpkgs#hello
error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted
This error is coming from Nix (not the installer) trying to change the permissions. The folder likely already has those permissions because the installer created them with those permissions.
Hmm, I thought this installer should work wherever the official installer also worked?
It would be great if I could just use the DetSys installer everywhere without needing to fall back to the official installer in special cases.
Given this dockerfile:
Maybe related to #418
Also /nix/var/nix/profiles/per-user already has permission 755 , it seems the installer could check before attempting to change it?
The official installer works fine here:
The text was updated successfully, but these errors were encountered: