Skip to content

Commit dc541b4

Browse files
committed
nixos-modules/host/default: Don't chown nix store
1 parent 04cd269 commit dc541b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos-modules/host/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ in
9797
''
9898
# Make sure that the sources of the shares can be accessed.
9999
# Also ignore failures of each command for now
100-
+ builtins.foldl' (acc: share: acc + ''
100+
+ builtins.foldl' (acc: share:
101+
acc + lib.optionalString (share.source != "/nix/store") ''
101102
# Initialize permissions for share with mountPoint ${share.mountPoint}
102103
mkdir -p '${share.source}' || :
103104
chown -hR ${user}:${group} '${share.source}' || :

0 commit comments

Comments
 (0)