Hi!

I'm trying Guix for my home environment (on a non-Guix distribution). The 
problem I am facing is when I try to use the `zsh-syntax-highlighting' plugin 
in my .zshrc through home configuration.

Following is my configuration (config.scm):

------------------------------------------
(use-modules
 (srfi srfi-1)
 (guix build utils)
 (gnu home)
 (gnu home services)
 (gnu home services shells)
 (gnu services)
 (gnu packages)
 (gnu packages admin)
 (gnu packages base)
 (gnu packages guile)
 (gnu packages emacs)
 (gnu packages certs)
 (gnu packages rust-apps)
 (gnu packages tmux)
 (gnu packages search)
 (gnu packages shellutils)
 (gnu packages terminals)
 (guix gexp))


(home-environment
 (packages (specifications->packages
            (list "htop" "guile" "glibc-locales" "emacs-no-x" "zoxide" "guix"
                  "guile-readline" "guile-colorized" "git" "tmux" "fzf"
                  "emacs-use-package" "emacs-paredit" "emacs-geiser-guile"
                  "emacs-rainbow-delimiters" "emacs-magit" "ripgrep" "ugrep"
                  "direnv" "neovim")))
 (services
  (list
   (service home-xdg-configuration-files-service-type
            `(("tmux/tmux.conf" ,(local-file "files/tmux.conf"))))

   (service home-files-service-type
            `((".emacs.d/init.el" ,(local-file "files/init.el"))
        (".guile"
               ,(scheme-file "dot-guile"
                             '((use-modules (ice-9 readline) (ice-9 colorized))
                               (activate-readline)
                               (activate-colorized)) #:splice? #t))))

   (service home-zsh-service-type
            (home-zsh-configuration
             (xdg-flavor? #t)
             (zshrc (list (computed-file "zshrc"
                                      #~(begin (reduce string-append "" (list 
"bindkey -e\n"
                                                                              
(format #f "source ~s/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh\n" 
#$zsh-syntax-highlighting)
                                                                              
"eval \"$(direnv hook zsh)\"\n"
                                                                              
"eval \"$(zoxide init zsh)\"\n"))))))
             (environment-variables
              `(("HISTFILE" . "$XDG_CACHE_HOME/.zsh_history")
                ("GIT_SSL_CAPATH" . ,#~(string-append #$nss-certs 
"/etc/ssl/certs"))
                ("HISTSIZE" . "15000"))))))))
------------------------------------------

And I receive following error:

------------------------------------------
$ guix time-machine -C ./channels.scm -- home reconfigure config.scm
guix home: error: reference to invalid output 'out' of derivation 
'/gnu/store/2dqwm651a0p0vqwhpvsy7dn8zvx4n99x-zshrc.drv'
------------------------------------------

And if it's of any importance, following are the contents of "./channels.scm":

------------------------------------------
(list (channel
       (name 'guix)
       (url "https://git.savannah.gnu.org/git/guix.git";)
       (branch "master")
       (commit "17187aab61b064aff42a0fe911313011b7162de5")

       (introduction
        (make-channel-introduction
         "9edb3f66fd807b096b48283debdcddccfea34bad"
         (openpgp-fingerprint
          "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))
------------------------------------------


Thanks in advance for any help

--
Abbe


Reply via email to