all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Edit: Need help about guix home "home-run-on-first-login-service-type"
@ 2024-08-06  7:00 2694273649
  0 siblings, 0 replies; 3+ messages in thread
From: 2694273649 @ 2024-08-06  7:00 UTC (permalink / raw)
  To: guix-devel

For my first mail`s code block may hard to read (but it looks fine when
i read it from browser), so I edit it with emacs hope can correct the
whitespace


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



----------output for guix home container home-configuration.scm ---------

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Edit: Need help about guix home "home-run-on-first-login-service-type"
@ 2024-08-06  8:30 jidibinlin
  2024-08-06 13:22 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
  0 siblings, 1 reply; 3+ messages in thread
From: jidibinlin @ 2024-08-06  8:30 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 3002 bytes --]

Mail conent show the unhandled whitespace because you read the mail in text way
but not html. Any way. I resend it in text way here.



I want to use home-run-on-first-login-service-type to automatic install on-my-zsh
when 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)))))



———————————– 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

[-- Attachment #1.2: Type: text/html, Size: 5231 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Edit: Need help about guix home "home-run-on-first-login-service-type"
  2024-08-06  8:30 jidibinlin
@ 2024-08-06 13:22 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
  0 siblings, 0 replies; 3+ messages in thread
From: Felix Lechner via Development of GNU Guix and the GNU System distribution. @ 2024-08-06 13:22 UTC (permalink / raw)
  To: jidibinlin, guix-devel

Hi 花不见海,

On Tue, Aug 06 2024, jidibinlin wrote:

> Mail conent show the unhandled whitespace because you read the mail in
> text way but not html.

You are right that the HTML version looked fine.

I also saw the HTML entity &nbsp; in the "text/plain" multipart of your
message.  Many people here turn off HTML email.

Kind regards & thanks for using Guix!
Felix


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-06 13:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06  7:00 Edit: Need help about guix home "home-run-on-first-login-service-type" 2694273649
  -- strict thread matches above, loose matches on Subject: below --
2024-08-06  8:30 jidibinlin
2024-08-06 13:22 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.