⛔ Warning (with-editor): Cannot determine a suitable Emacsclient

Determining an Emacsclient executable suitable for the
current Emacs instance failed.  For more information
please see https://github.com/magit/magit/wiki/Emacsclient.

I switched to guix as the package manager following system-crafters tutorial. I have correct setup the PATH variable so that binaries from guix are accessible, but still magit is not able find emacsclient even though it is there and I can launch it from shell. No changes to the configure has been made. Used to work this morning but after removing apt emacs and installing emacs via guix I get this issue.

Config:

  (use-package magit
    :bind (("C-c g" . #'magit-status)))