diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-11-11 19:05:50 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-11-18 15:44:40 +0100 |
commit | 8b56983999657b52f9023c767428e338eb0f21f0 (patch) | |
tree | 79e8dcb2d68d8c3dde7276a3d661442121c89e60 | |
parent | 8d9647d8a77a67013c48166561134d92b5224264 (diff) | |
download | guix-8b56983999657b52f9023c767428e338eb0f21f0.tar.gz guix-8b56983999657b52f9023c767428e338eb0f21f0.zip |
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.
-rw-r--r-- | gnu/home/services/desktop.scm | 3 | ||||
-rw-r--r-- | gnu/home/services/shepherd.scm | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gnu/home/services/desktop.scm b/gnu/home/services/desktop.scm index 1ebfb14f3c..cb25b03b64 100644 --- a/gnu/home/services/desktop.scm +++ b/gnu/home/services/desktop.scm @@ -165,7 +165,8 @@ format.")) (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 diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm index d2a803279f..1a70a220f0 100644 --- a/gnu/home/services/shepherd.scm +++ b/gnu/home/services/shepherd.scm @@ -45,7 +45,8 @@ 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 |