mikadoZero <[email protected]> writes:

> I did copy the suggested exports that were output when I ran `guix
> package --manifest=manifest.scm` into .zprofile and they were:

I suggest to not do this and to add this snippet instead:

    export GUIX_PROFILE="$HOME/.guix-profile"
    source $GUIX_PROFILE/etc/profile

> I commented out all of the above export of environment variables in
> .zprofile and ran `guix environment --pure guix` then ran `printenv` but
> that has not changed the order.  /root/.guix-profile directories are
> still first.

“guix environment --pure” spawns a sub-shell.  You need to ensure that
for sub-shells the variables are not set — this is currently not the
case as evidenced by printenv.  I don’t know about what files zsh reads
under what conditions, so I cannot recommend a way around this.

You could also try to use Bash instead.

--
Ricardo


Reply via email to