diff options
author | Ludovic Courtès <[email protected]> | 2025-01-17 23:08:30 +0100 |
---|---|---|
committer | Ludovic Courtès <[email protected]> | 2025-01-26 22:09:27 +0100 |
commit | 5cfbf7b513bdc9fb07c4e4a34d495934b6a486ad (patch) | |
tree | 1de2fc406fb5c51ae16fa0b78e024573cc9c01d9 /gnu/home | |
parent | dc0df5eb470ef5dff446bec186c184f45f40423a (diff) |
home: services: shepherd: Add ‘transient’ and ‘timer’ services.
* gnu/home/services/shepherd.scm (home-shepherd-timer-service-type)
(home-shepherd-transient-service-type): New variables.
* doc/guix.texi (Shepherd Home Service): Document them.
(Shepherd Services): Add anchor.
Reviewed-by: Maxim Cournoyer <[email protected]>
Change-Id: Ia4eb7cf043f4661c64f5ca81b8989a451532aa18
Diffstat (limited to 'gnu/home')
-rw-r--r-- | gnu/home/services/shepherd.scm | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm index 37ad1489d6..b2b141d4de 100644 --- a/gnu/home/services/shepherd.scm +++ b/gnu/home/services/shepherd.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2021, 2023 Andrew Tropin <[email protected]> ;;; Copyright © 2021 Xinglu Chen <[email protected]> -;;; Copyright © 2024 Ludovic Courtès <[email protected]> +;;; Copyright © 2024-2025 Ludovic Courtès <[email protected]> ;;; ;;; This file is part of GNU Guix. ;;; @@ -34,7 +34,10 @@ home-shepherd-configuration-auto-start? home-shepherd-configuration-daemonize? home-shepherd-configuration-silent? - home-shepherd-configuration-services) + home-shepherd-configuration-services + + home-shepherd-transient-service-type + home-shepherd-timer-service-type) #:re-export (shepherd-service shepherd-service? shepherd-service-documentation @@ -181,3 +184,17 @@ as shepherd package." (define-service-type-mapping shepherd-root-service-type => home-shepherd-service-type) + +;;; +;;; Timer and transient service maker. +;;; + +(define home-shepherd-timer-service-type + (service-type + (inherit (system->home-service-type shepherd-timer-service-type)) + (default-value '()))) ;requirement + +(define home-shepherd-transient-service-type + (service-type + (inherit (system->home-service-type shepherd-transient-service-type)) + (default-value '()))) ;requirement |