unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tomas Volf <~@wolfsden.cz>
To: 花不见海 <2694273649@qq.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Need help about guix home "home-run-on-first-login-service-type"
Date: Mon, 5 Aug 2024 19:49:17 +0200	[thread overview]
Message-ID: <ZrEQnZSlktVBh2jb@ws> (raw)
In-Reply-To: <tencent_C17141545EA751EBCB4B2D193D92ECC79708@qq.com>

[-- Attachment #1: Type: text/plain, Size: 4523 bytes --]

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.&nbsp; This is "symbolic": it only
> ;; specifies package names.&nbsp; 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)
> &nbsp; (gnu packages)
> &nbsp; (gnu services)
> &nbsp; (guix gexp)
> &nbsp; (gnu home services shells)
> &nbsp; (gnu home services))
>
>
> (define download-ohmyzsh-install
> &nbsp; (with-imported-modules '((guix build utils))
> &nbsp; &nbsp; #~(begin
> &nbsp; &nbsp; &nbsp; &nbsp; (use-modules (guix build utils))
> &nbsp; &nbsp; &nbsp; &nbsp; (invoke
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "curl"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "-L"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "-O"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "install.sh")
> &nbsp; &nbsp; &nbsp; &nbsp; (invoke "sh" "install.sh"))))
>
>
> (home-environment
> &nbsp; ;; Below is the list of packages that will show up in your
> &nbsp; ;; Home profile, under ~/.guix-home/profile.
> &nbsp; (packages (specifications-&gt;packages (list "guile"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "clojure"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "node"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "gopls"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "go"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "emacs-pgtk"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "curl"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "direnv")))
>
>
> &nbsp; ;; Below is the list of Home services.&nbsp; To search for available
> &nbsp; ;; services, run 'guix home search KEYWORD' in a terminal.
> &nbsp; (services
> &nbsp; &nbsp; (list
> &nbsp; &nbsp; &nbsp; (service home-run-on-first-login-service-type download-ohmyzsh-install)
> &nbsp; &nbsp; &nbsp; (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:
> &nbsp; /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv
> &nbsp; /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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-08-05 17:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 13:51 Need help about guix home "home-run-on-first-login-service-type" =?gb18030?B?u6iyu7z7uqM=?=
2024-08-05 17:49 ` Tomas Volf [this message]
2024-08-06  8:35 ` Marek Paśnikowski
     [not found]   ` <87ikwevvsm.fsf@qq.com>
2024-08-06  9:35     ` jidibinlin

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=ZrEQnZSlktVBh2jb@ws \
    --to=~@wolfsden.cz \
    --cc=2694273649@qq.com \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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