diff --git a/boot/boot-stage-2-init.sh b/boot/boot-stage-2-init.sh index ee18c320c97..5ad85bea27e 100644 --- a/boot/boot-stage-2-init.sh +++ b/boot/boot-stage-2-init.sh @@ -142,7 +142,7 @@ export PATH=$PATH export MODULE_DIR=$MODULE_DIR export NIX_CONF_DIR=/nix/etc/nix -source $(dirname $(type -tp nix-env))/../etc/profile.d/nix.sh +source $(dirname $(readlink -f $(type -tp nix-env)))/../etc/profile.d/nix.sh alias ll="ls -l"