DavHau / nix-portable

Nix - Static, Permissionless, Installation-free, Pre-configured
MIT License
779 stars 29 forks source link

homeless-shelter writable and causes failure if something writes there #118

Open terlar opened 1 month ago

terlar commented 1 month ago

If running nix-portable with sandbox = false and a derivation writes to HOME you will get an error like this:

error: home directory '/homeless-shelter' exists; please remove it to assure purity of builds without sandboxing

I noticed this when trying to build this: https://github.com/nix-community/NixOS-WSL/pull/481

Perhaps this folder can ensure it is not writable. Or if it is possible to solve in another way.

SuperSandro2000 commented 1 month ago

/homeless-shelter should not exist but should be writeable.

Possible solutions: