feat(scheme): auto-add guix channels to load-path

Guix is detected with a simple `executable-find`, and this trick assumes
that guix is running on version 3 of Guile (which hopefully won't
change for a while)
This commit is contained in:
Gerry Agbobada 2021-08-25 23:19:56 +02:00 committed by Henrik Lissner
parent 6b5c34a1db
commit 4786e739af

View file

@ -72,3 +72,9 @@
:when (featurep! +guile)
:when (featurep! :checkers syntax)
:after geiser)
;; Add Guix channels to Guile load path
(when (and (featurep! +guile) (executable-find "guix"))
(after! geiser-guile
(add-to-list 'geiser-guile-load-path
(expand-file-name "~/.config/guix/current/share/guile/site/3.0"))))