mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
Revert "home-services: Demonadify 'on-first-login' handling."
This commit breaks building guix home
guix home: error: reference to invalid output 'out' of derivation \
'/gnu/store/86zc4rijsswmfqnaq8rwixcxjl2zyl1c-on-first-login.drv'
This reverts commit 4dcec60fa6
.
This commit is contained in:
parent
546f8537aa
commit
b2f8186590
1 changed files with 4 additions and 4 deletions
|
@ -275,7 +275,7 @@ (define home-files-service-type
|
||||||
will be put in @file{~/.guix-home/files}.")))
|
will be put in @file{~/.guix-home/files}.")))
|
||||||
|
|
||||||
(define (compute-on-first-login-script _ gexps)
|
(define (compute-on-first-login-script _ gexps)
|
||||||
(computed-file
|
(gexp->script
|
||||||
"on-first-login"
|
"on-first-login"
|
||||||
#~(let* ((xdg-runtime-dir (or (getenv "XDG_RUNTIME_DIR")
|
#~(let* ((xdg-runtime-dir (or (getenv "XDG_RUNTIME_DIR")
|
||||||
(format #f "/run/user/~a" (getuid))))
|
(format #f "/run/user/~a" (getuid))))
|
||||||
|
@ -294,11 +294,11 @@ (define (compute-on-first-login-script _ gexps)
|
||||||
XDG_RUNTIME_DIR variable is set to apropriate value and manually execute the
|
XDG_RUNTIME_DIR variable is set to apropriate value and manually execute the
|
||||||
script by running '$HOME/.guix-home/on-first-login'")))))
|
script by running '$HOME/.guix-home/on-first-login'")))))
|
||||||
|
|
||||||
(define (on-first-login-script-entry on-first-login)
|
(define (on-first-login-script-entry m-on-first-login)
|
||||||
"Return, as a monadic value, an entry for the on-first-login script
|
"Return, as a monadic value, an entry for the on-first-login script
|
||||||
in the home environment directory."
|
in the home environment directory."
|
||||||
(with-monad %store-monad
|
(mlet %store-monad ((on-first-login m-on-first-login))
|
||||||
(return `(("on-first-login" ,on-first-login)))))
|
(return `(("on-first-login" ,on-first-login)))))
|
||||||
|
|
||||||
(define home-run-on-first-login-service-type
|
(define home-run-on-first-login-service-type
|
||||||
(service-type (name 'home-run-on-first-login)
|
(service-type (name 'home-run-on-first-login)
|
||||||
|
|
Loading…
Reference in a new issue