Only source guix profile if guix home exists

This commit is contained in:
Leonora Tindall 2024-10-07 07:35:51 -05:00
parent 5dec23d973
commit 2a9c4e0f23
1 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@
initExtra = '' initExtra = ''
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
export GUIX_PROFILE="/home/nora/.config/guix/current" export GUIX_PROFILE="/home/nora/.config/guix/current"
. "$GUIX_PROFILE/etc/profile" if [[ -f "$GUIX_PROFILE/etc/profile" ]]; then
export PATH="$HOME/.bin:$HOME/.local/bin:$PATH" . "$GUIX_PROFILE/etc/profile"
fi
fortune fortune
''; '';
}; };