You probably don’t want to fix that part of your .profile issues using .bashrc. It should be in the profile. I’m currently having issues on foreign distributions because the wrong guix is available when running guix copy over SSH.
Troubleshooting the login shell issues is tricky, since you need to login/logout. That’s one reason why i had set up a console-specific emacs profile: so i could fix this from one TTY and test in another.
I listed some useful aliases for diffing profile paths in this post here: How do I get Guix to have flatpak application show up in the applications menu whenever I install a flatpak application? - #11 by aionfork