nix icon indicating copy to clipboard operation
nix copied to clipboard

Isolate home folder in nix-shell

Open 18fadly-anthony opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Software from ephemeral shells leaves junk in the home folder

Describe the solution you'd like

  1. nix-shell -p firefox --set-home /foo/bar equivalent of: nix-shell -p firefox && HOME=/foo/bar
  2. nix-shell -p firefox --tmp-home equivalent of: nix-shell -p firefox && mkdir -p /tmp/example && HOME=/tmp/example

Describe alternatives you've considered

  • manually changing HOME variable
  • firejail

18fadly-anthony avatar Mar 13 '22 23:03 18fadly-anthony

This idea reminds me a bit of x11docker. If you need a solution right now, that might work.

GoogleBot42 avatar Mar 23 '22 02:03 GoogleBot42