Guix profiles with Emacs

Hi,

is there a way to load Guix profiles at runtime so that they’re available for an already running Emacs instance? I have a profile for Rust development tools that I only want in my path when I’m actually using it. I know I can go to a terminal and source the /path/to/profile/etc/profile, but that doesn’t affect the path of a running Emacs instance. The only way I could think of so far is to load the profile and then restart Emacs from that shell, which is not really what I want.

It should probably be doable with direnv (and envrc.el) or buffer-env.el.

I use buffer-env.el together with manifest.scm files in order to load compilers and dev-tools depending on the directory I’m in.