66e94d3275
default -> default-94-link default-82-link -> /nix/store/cc4480... default-83-link -> /nix/store/caeec8... ... default-94-link -> /nix/store/2896ca... experimental -> experimental-2-link experimental-1-link -> /nix/store/cc4480... experimental-2-link -> /nix/store/a3148f... * `--profile' / `-p' -> `--switch-profile' / `-S' * `--link' / `-l' -> `--profile' / `-p' * The default profile is stored in $prefix/var/nix/profiles. $prefix/var/nix/links is gone. Profiles can be stored anywhere. * The current profile is now referenced from ~/.nix-profile, not ~/.nix-userenv. * The roots to the garbage collector now have extension `.gcroot', not `.id'.
12 lines
291 B
Bash
12 lines
291 B
Bash
if test -n "$HOME"; then
|
|
NIX_LINK="$HOME/.nix-profile"
|
|
|
|
if ! test -L "$NIX_LINK"; then
|
|
echo "creating $NIX_LINK"
|
|
_NIX_DEF_LINK=@localstatedir@/nix/profiles/default
|
|
ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
|
|
fi
|
|
|
|
export PATH=$NIX_LINK/bin:@prefix@/bin:$PATH
|
|
fi
|