Skip to content

Commit

Permalink
nixos-modules/host/default: Don't chown nix store
Browse files Browse the repository at this point in the history
  • Loading branch information
lordkekz committed Dec 9, 2024
1 parent e8bfac9 commit 756dbd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos-modules/host/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ in
''
# Make sure that the sources of the shares can be accessed.
# Also ignore failures of each command for now
+ builtins.foldl' (acc: share: acc + ''
+ builtins.foldl' (acc: share:
acc + lib.optionalString (share.source != "/nix/store") ''
# Initialize permissions for share with mountPoint ${share.mountPoint}
mkdir -p '${share.source}' || :
chown -hR ${user}:${group} '${share.source}' || :
Expand Down

0 comments on commit 756dbd7

Please sign in to comment.