guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/04: home: Add gexp-compiler for home-environments.


From: guix-commits
Subject: 03/04: home: Add gexp-compiler for home-environments.
Date: Sun, 19 Dec 2021 17:40:25 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit ed818c66d371656c869f43d7a7cbbcfba2df647b
Author: Andrew Tropin <andrew@trop.in>
AuthorDate: Wed Dec 15 10:25:22 2021 +0300

    home: Add gexp-compiler for home-environments.
    
    * gnu/home.scm (home-environment-compiler): New variable.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/home.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/home.scm b/gnu/home.scm
index d813469..a9f0a46 100644
--- a/gnu/home.scm
+++ b/gnu/home.scm
@@ -25,6 +25,8 @@
   #: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 @@ of HOME-PROVENANCE-SERVICE-TYPE to its services."
     (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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]