diff --git a/nixos-modules/host/default.nix b/nixos-modules/host/default.nix index f5456b90..acc50756 100644 --- a/nixos-modules/host/default.nix +++ b/nixos-modules/host/default.nix @@ -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}' || :