Conversation
828a28b to
4f1f213
Compare
|
|
||
|
|
||
| # Add Nix support | ||
| RUN mkdir -p /var/nix && ln -srf /var/nix /nix && chmod 1777 /var/nix |
There was a problem hiding this comment.
Won't work, nix requires the /nix directory to specifically not be a symlink. It must be writeable and probably a bind-mount to somewhere else
There was a problem hiding this comment.
huh... interesting. What if we bind mount it to /sysroot/nix
There was a problem hiding this comment.
I'd recommend not doing anything with /sysroot due to it being an internal implementation of bootc, the composefs-native backend wants to change that into a read-only mount as well
There was a problem hiding this comment.
what about an optional nix.mount unit that just creates a bind mount to /var/nix?
There was a problem hiding this comment.
That probably would work yeah! I think thats what the determinate-systems nix installer does that...?
Experimental patch to add Nix support, needs testing