On 2024-08-05 21:51:17 +0800, 花不见海 wrote:
> I want to use home-run-on-first-login-service-type to automatic install 
> on-my-zshwhen first login to shell.
>
>
> But I got an error when I try to guilx home container home-configuration.scm
>
>
> ------------------------------ home-configuration.scm 
> -----------------------------------
>
>
> ;; This "home-environment" file can be passed to 'guix home reconfigure'
> ;; to reproduce the content of your profile.  This is "symbolic": it only
> ;; specifies package names.  To reproduce the exact same profile, you 
> also
> ;; need to capture the channels being used, as returned by "guix describe".
> ;; See the "Replicating Guix" section in the manual.
>
>
> (use-modules (gnu home)
>   (gnu packages)
>   (gnu services)
>   (guix gexp)
>   (gnu home services shells)
>   (gnu home services))
>
>
> (define download-ohmyzsh-install
>   (with-imported-modules '((guix build utils))
>     #~(begin
>         (use-modules (guix build utils))
>         (invoke
>           "curl"
>           "-L"
>           
> "https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh";
>           "-O"
>           "install.sh")
>         (invoke "sh" "install.sh"))))
>
>
> (home-environment
>   ;; Below is the list of packages that will show up in your
>   ;; Home profile, under ~/.guix-home/profile.
>   (packages (specifications->packages (list "guile"
>                       
>                   "clojure"
>                       
>                   "node"
>                       
>                   "gopls"
>                       
>                   "go"
>                       
>                   "emacs-pgtk"
>                       
>                   "curl"
>                       
>                   "direnv")))
>
>
>   ;; Below is the list of Home services.  To search for available
>   ;; services, run 'guix home search KEYWORD' in a terminal.
>   (services
>     (list
>       (service home-run-on-first-login-service-type 
> download-ohmyzsh-install)
>       (service home-zsh-service-type 
> (home-zsh-configuration)))))

This is really hard to read, could you please resend with correct whitespace
handling?

>
>
>
> --------------------------------------- end 
> -----------------------------------------------
>
>
> -------------------------------------- error output 
> ---------------------------------------
>
> substitute: updating substitutes from 'https://mirror.sjtu.edu.cn/guix/'... 
> 100.0%
> The following derivations will be built:
>   /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv
>   /gnu/store/8483bafsq7izr33l9v3qcw51vkxgl260-provenance.drv
>
>
> building /gnu/store/8483bafsq7izr33l9v3qcw51vkxgl260-provenance.drv...
> building /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv...
> \builder for `/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv' failed 
> with exit code 1
> build of /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv failed
> View build log at 
> '/var/log/guix/drvs/3s/zcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv.gz'.
> guix home: error: build of 
> `/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv' failed
>
> ------------------------------------------- end 
> -------------------------------------------
>
>
> I`m a novice of guix, any big guys can help me?
>
>
> Thank you!

Have a nice day,
Tomas Volf

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Attachment: signature.asc
Description: PGP signature

Reply via email to