nix
nix copied to clipboard
Isolate home folder in nix-shell
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
-
nix-shell -p firefox --set-home /foo/bar
equivalent of:nix-shell -p firefox && HOME=/foo/bar
-
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
This idea reminds me a bit of x11docker. If you need a solution right now, that might work.