mirror of https://codeberg.org/anemofilia/zero
home-environments: radio: Add shepherd-service:repl
parent
cd0ad6cdc0
commit
55e3457d42
|
@ -147,7 +147,8 @@
|
|||
(service home-shepherd-service-type
|
||||
(home-shepherd-configuration
|
||||
(shepherd (@ (shepherd-package) shepherd))
|
||||
(services (list shepherd-service:timer
|
||||
(services (list shepherd-service:repl
|
||||
shepherd-service:timer
|
||||
shepherd-service:wake-up))))
|
||||
|
||||
#|Shell services|#
|
||||
|
|
|
@ -3,7 +3,21 @@
|
|||
#:use-module (gnu services shepherd)
|
||||
#:use-module (shepherd service timer)
|
||||
|
||||
#:export (wake-up timer))
|
||||
#:export (repl timer wake-up))
|
||||
|
||||
#|Repl|#
|
||||
(define repl
|
||||
(shepherd-service
|
||||
(provision '(repl))
|
||||
(modules '((shepherd service repl)))
|
||||
(free-form #~(repl-service))))
|
||||
|
||||
#|Timers|#
|
||||
(define timer
|
||||
(shepherd-service
|
||||
(provision '(timer))
|
||||
(modules '((shepherd service timer)))
|
||||
(free-form #~(timer-service))))
|
||||
|
||||
(define timer-trigger-action
|
||||
(shepherd-action
|
||||
|
@ -24,8 +38,3 @@ next calendar event.")))
|
|||
(stop #~(make-timer-destructor))
|
||||
(actions (list timer-trigger-action))))
|
||||
|
||||
(define timer
|
||||
(shepherd-service
|
||||
(provision '(timer))
|
||||
(modules '((shepherd service timer)))
|
||||
(free-form #~(timer-service))))
|
||||
|
|
Loading…
Reference in New Issue