Upstream (pure) nix user sandboxing uses ~/.local/share/nix/root/nix/{store,var} by default.
For example this is what nix uses with user namespace sandboxing if one only installs fedora nix-core (ie with no system /nix).
Would it make sense to or have you considered bind mounting ~/.local/share/nix/root/nix/ instead of ~/.local/share/nix/?
This could avoid duplication of user nix roots between a host (or other toolbox containers) and nix-toolbox say, unless there is a reason not to do this.
Upstream (pure) nix user sandboxing uses
~/.local/share/nix/root/nix/{store,var}by default.For example this is what nix uses with user namespace sandboxing if one only installs fedora
nix-core(ie with no system/nix).Would it make sense to or have you considered bind mounting
~/.local/share/nix/root/nix/instead of~/.local/share/nix/?This could avoid duplication of user nix roots between a host (or other toolbox containers) and nix-toolbox say, unless there is a reason not to do this.