about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorWxNzEMof <143541718+WxNzEMof@users.noreply.github.com>2024-01-22 11:49:52 +0000
committerWxNzEMof <143541718+WxNzEMof@users.noreply.github.com>2024-02-26 18:10:51 +0000
commit2697d34603c9bdf7b6b1728ece7c72efdb4872a4 (patch)
tree7d5a547ac3e3c2e0866e40554a3ff2b2c029900c /pkgs/build-support
parent0ec13cdb905f4428d9f008f2d99b4bd62e6fff67 (diff)
streamLayeredImage: Change mode of /nix, /nix/store to 755
The change is insignificant when the owner is root.  However, when it
is not root, this change is needed to allow using Nix (as an
unprivileged user) inside the container.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/docker/stream_layered_image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/docker/stream_layered_image.py b/pkgs/build-support/docker/stream_layered_image.py
index b7e68fe322852..98ec2358cef94 100644
--- a/pkgs/build-support/docker/stream_layered_image.py
+++ b/pkgs/build-support/docker/stream_layered_image.py
@@ -70,7 +70,7 @@ def archive_paths_to(obj, paths, mtime, uid, gid, uname, gname):
         return ti
 
     def nix_root(ti):
-        ti.mode = 0o0555  # r-xr-xr-x
+        ti.mode = 0o0755  # rwxr-xr-x
         return ti
 
     def dir(path):