[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to create a .zshrc in guix home environment referencing a zsh plu

From: A
Subject: Trying to create a .zshrc in guix home environment referencing a zsh plugin
Date: Sat, 20 Jan 2024 23:18:16 +0000


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):

 (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))

 (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")))
   (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"))
               ,(scheme-file "dot-guile"
                             '((use-modules (ice-9 readline) (ice-9 colorized))
                               (activate-colorized)) #:splice? #t))))

   (service home-zsh-service-type
             (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" 
"eval \"$(direnv hook zsh)\"\n"
"eval \"$(zoxide init zsh)\"\n"))))))
              `(("HISTFILE" . "$XDG_CACHE_HOME/.zsh_history")
                ("GIT_SSL_CAPATH" . ,#~(string-append #$nss-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 

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

(list (channel
       (name 'guix)
       (url "";)
       (branch "master")
       (commit "17187aab61b064aff42a0fe911313011b7162de5")

          "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))

Thanks in advance for any help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]