DavHau / nix-portable

Nix - Static, Permissionless, Installation-free, Pre-configured
MIT License
904 stars 33 forks source link

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

Open terlar opened 5 months ago

terlar commented 5 months 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 5 months ago

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

Possible solutions: