# Is my Guix ENV (bash\_profile) right? \[System + Home + Guix Package\]

**URL:** <https://forum.systemcrafters.net/t/is-my-guix-env-bash-profile-right-system-home-guix-package/693>\
**Category:** Guix\
**Created:** [May 19, 2024, 4:12pm UTC](https://forum.systemcrafters.net/t/is-my-guix-env-bash-profile-right-system-home-guix-package/693 "2024-05-19T16:12:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![logoraz](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/logoraz/32/1133_2.png) [@logoraz](https://forum.systemcrafters.net/u/logoraz)\
**Post date:** [May 19, 2024, 4:12pm UTC](https://forum.systemcrafters.net/t/is-my-guix-env-bash-profile-right-system-home-guix-package/693/1 "2024-05-19T16:12:54Z")

</div>

Hi All,

Just wanted to check to see if I have my `.bash_profile` set up correctly. I have some packages set up at the system level: `stumpwm`, `stumpwm:lib`, and `sbcl`. The remainder of my packages in Guix home (i.e. stumpwm contrib stuff as well as most of everything else). Then I also do have some stuff installed via `guix package`, i.e. `Lem` and a few other packages. I am not exactly sure, even after reading the manual, how or what is the correct way to set up `.bash_profile` for this specific use case and would appreciate any help.

I have `home-bash-service-type` set up as follows:

```auto
(service home-bash-service-type
(home-bash-configuration
	     (guix-defaults? #f)
(aliases '(("grep" . "grep --color=auto")
          ("ls" . "ls -p --color=auto")
          ("ll" . "ls -l")
          ("la" . "ls -la")
          ("ghr" . "guix home reconfigure")
          ("gsr" . "sudo guix system reconfigure")
          ("gup" . "guix pull && guix upgrade")
          ("gud" . "guix system delete-generations")
          ("ghd" . "guix home delete-generations")))
(bashrc
(list (local-file "./config/dot-bashrc.sh"
                  #:recursive? #t)))
(bash-profile
(list (local-file "./config/dot-bash_profile.sh"
                  #:recursive? #t)))))

```

Here is my `dot-bash_profile.sh` that Guix home uses:

```auto
# Add ~/.guix-profile if it exists
if [-L ~/.guix-profile]; then
    GUIX_PROFILE="/home/logoraz/.guix-profile"
    . "$GUIX_PROFILE/etc/profile"
fi

```

And finally, this is the .bash\_profile that Guix generates:

```auto
# Set up the system, user profile, and related variables.
# /etc/profile will be sourced by bash automatically
# Set up the home environment profile.
if [-f ~/.profile]; then source ~/.profile; fi

# Honor per-interactive-shell startup file
if [-f ~/.bashrc]; then source ~/.bashrc; fi

# Add ~/.guix-profile if it exists
if [-L ~/.guix-profile]; then
    GUIX_PROFILE="/home/logoraz/.guix-profile"
    . "$GUIX_PROFILE/etc/profile"
fi

```

Thanks!
