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.
This commit is contained in:
		
							parent
							
								
									e3ed1d09f9
								
							
						
					
					
						commit
						70d58d1556
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue