File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ The following environment variables are optional and can be used to override the
176176``` txt
177177NP_DEBUG (1 = debug msgs; 2 = 'set -x' for nix-portable)
178178NP_GIT specify path to the git executable
179- NP_LOCATION where to put the `.nix-portable` dir. (defaults to `$HOME`)
179+ NP_LOCATION where to put the data dir. (defaults to `$HOME`)
180+ NP_DIRNAME name of the data dir. (defaults to `.nix-portable`)
180181NP_RUNTIME which runtime to use (must be one of: nix, bwrap, proot)
181182NP_NIX specify the path to the static nix executable to use in case nix is selected as runtime
182183NP_BWRAP specify the path to the bwrap executable to use in case bwrap is selected as runtime
Original file line number Diff line number Diff line change 131131
132132 # user specified location for program files and nix store
133133 [ -z "\$NP_LOCATION" ] && NP_LOCATION="\$HOME"
134+ [ -z "\$NP_DIRNAME" ] && NP_DIRNAME=".nix-portable"
134135 NP_LOCATION="\$(readlink -f "\$NP_LOCATION")"
135- dir="\$NP_LOCATION/.nix-portable "
136+ dir="\$NP_LOCATION/\$NP_DIRNAME "
136137 store="\$dir/nix/store"
137138 # create /nix/var/nix to prevent nix from falling back to chroot store.
138139 mkdir -p \$dir/{bin,nix/var/nix,nix/store}
You can’t perform that action at this time.
0 commit comments