summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/home/services/shepherd.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm
index 62ab0aadc6..fcc7763a61 100644
--- a/gnu/home/services/shepherd.scm
+++ b/gnu/home/services/shepherd.scm
@@ -130,6 +130,12 @@ as shepherd package."
#$(reload-configuration-gexp config)
#$(launch-shepherd-gexp config)))
+(define (shepherd-xdg-configuration-files config)
+ (let* ((shepherd (home-shepherd-configuration-shepherd config))
+ (services (home-shepherd-configuration-services config)))
+ `(("shepherd/init.scm"
+ ,(home-shepherd-configuration-file services shepherd)))))
+
(define-public home-shepherd-service-type
(service-type (name 'home-shepherd)
(extensions
@@ -137,6 +143,9 @@ as shepherd package."
home-run-on-first-login-service-type
launch-shepherd-gexp)
(service-extension
+ home-xdg-configuration-files-service-type
+ shepherd-xdg-configuration-files)
+ (service-extension
home-activation-service-type
ensure-shepherd-gexp)
(service-extension