unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: A <gnu.bonfire@p.atriar.ch>
To: help-guix@gnu.org
Subject: Trying to create a .zshrc in guix home environment referencing a zsh plugin
Date: Sat, 20 Jan 2024 23:18:16 +0000	[thread overview]
Message-ID: <170579271812.10.1715248237828604493.252163807@p.atriar.ch> (raw)

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	other threads:[~2024-01-21 10:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-20 23:18 A [this message]
2024-01-21 12:10 ` Trying to create a .zshrc in guix home environment referencing a zsh plugin Saku Laesvuori
2024-01-21 17:51   ` Abbé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=170579271812.10.1715248237828604493.252163807@p.atriar.ch \
    --to=gnu.bonfire@p.atriar.ch \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).