Skip to content

Commit 756dbd7

Browse files
committed
nixos-modules/host/default: Don't chown nix store
1 parent e8bfac9 commit 756dbd7

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
@@ -95,7 +95,8 @@ in
9595
''
9696
# Make sure that the sources of the shares can be accessed.
9797
# Also ignore failures of each command for now
98-
+ builtins.foldl' (acc: share: acc + ''
98+
+ builtins.foldl' (acc: share:
99+
acc + lib.optionalString (share.source != "/nix/store") ''
99100
# Initialize permissions for share with mountPoint ${share.mountPoint}
100101
mkdir -p '${share.source}' || :
101102
chown -hR ${user}:${group} '${share.source}' || :

0 commit comments

Comments
 (0)