# Home-manager doesn't seem to recognize sessionVariables

**URL:** https://discourse.nixos.org/t/home-manager-doesnt-seem-to-recognize-sessionvariables/8488
**Category:** Help
**Created:** [August 8, 2020, 4:13am UTC](https://discourse.nixos.org/t/home-manager-doesnt-seem-to-recognize-sessionvariables/8488 "2020-08-08T04:13:14Z")
**Posts on this page:** 1
**Showing post:** 26

<div class="post-metadata">

### Author: ![rubazen](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@rubazen](https://discourse.nixos.org/u/rubazen)
#### Post date: [May 20, 2024, 3:20pm UTC](https://discourse.nixos.org/t/home-manager-doesnt-seem-to-recognize-sessionvariables/8488/26 "2024-05-20T15:20:33Z")

</div>

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

```auto
# 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:

```auto
unset __HM_SESS_VARS_SOURCED ; . .profile

```

---

_[View the full topic](https://discourse.nixos.org/t/home-manager-doesnt-seem-to-recognize-sessionvariables/8488)._
