mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
home: Add gexp-compiler for home-environments.
* gnu/home.scm (home-environment-compiler): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
7e5ed08844
commit
ed818c66d3
1 changed files with 10 additions and 0 deletions
10
gnu/home.scm
10
gnu/home.scm
|
@ -25,6 +25,8 @@ (define-module (gnu home)
|
|||
#:use-module (gnu services)
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix diagnostics)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix store)
|
||||
|
||||
#:export (home-environment
|
||||
home-environment?
|
||||
|
@ -104,3 +106,11 @@ (define* (home-environment-with-provenance he config-file)
|
|||
(inherit he)
|
||||
(services (cons (service home-provenance-service-type config-file)
|
||||
(home-environment-user-services he)))))
|
||||
|
||||
(define-gexp-compiler (home-environment-compiler (he <home-environment>)
|
||||
system target)
|
||||
((store-lift
|
||||
(lambda (store)
|
||||
(run-with-store store (home-environment-derivation he)
|
||||
#:system system
|
||||
#:target target)))))
|
||||
|
|
Loading…
Reference in a new issue