From 70d58d1556fb1d16d674cf697bba1c5ce9c1767c Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Tue, 12 Apr 2022 12:19:50 +0300 Subject: home: shepherd: Add shepherd/init.scm to XDG_CONFIG_HOME. * gnu/home/services/shepherd.scm (shepherd-xdg-configuration-files): New variable. (home-shepherd-service-type)[extensions]: Add HOME-XDG-CONFIGURATION-FILES-SERVICE-TYPE extension. --- gnu/home/services/shepherd.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gnu/home') 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,12 +130,21 @@ 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 (list (service-extension 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) -- cgit 1.4.1