Home-manager doesn't seem to recognize sessionVariables

Sorry for necro, but I stumbled upon this post when I came across this problem myself.
Hope this is useful for the next person.
As an addendum to Niols’ post:

The first few lines of hm-session-vars.sh

# Only source this once.
if [ -n "$__HM_SESS_VARS_SOURCED" ]; then return; fi
export __HM_SESS_VARS_SOURCED=1

That VARS SOURCED is set by it’s previous version and part of your session, so new shells wont source the rest of the file where your path gets updated until you log out and in

For your current shell you can:

unset __HM_SESS_VARS_SOURCED ; . .profile
2 Likes