home: services: redshift: Add 'configuration' action.

* gnu/home/services/shepherd.scm: Re-export
'shepherd-configuration-action'.
* gnu/home/services/desktop.scm (redshift-shepherd-service): Add
'actions' field.
This commit is contained in:
Ludovic Courtès 2022-11-11 19:05:50 +01:00
parent 8d9647d8a7
commit 8b56983999
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 4 additions and 2 deletions

View file

@ -165,7 +165,8 @@ (define config-file
(start #~(make-forkexec-constructor
(list #$(file-append redshift "/bin/redshift")
"-c" #$config-file)))
(stop #~(make-kill-destructor)))))
(stop #~(make-kill-destructor))
(actions (list (shepherd-configuration-action config-file))))))
(define home-redshift-service-type
(service-type

View file

@ -45,7 +45,8 @@ (define-module (gnu home services shepherd)
shepherd-service-auto-start?
shepherd-service-modules
shepherd-action))
shepherd-action
shepherd-configuration-action))
(define-record-type* <home-shepherd-configuration>
home-shepherd-configuration make-home-shepherd-configuration