Hi Tomas, Tomas Volf <[email protected]> skribis:
> Felix Lechner via <[email protected]> writes: > >> Hi Tomas, >> >> On Mon, Dec 16 2024, Tomas Volf wrote: >> >>> what to put into the (actions) field >> >> Please try this: >> >> (actions >> (list (shepherd-action >> (name 'trigger) >> (documentation "Trigger the action associated with this timer.") >> (procedure #~(identity trigger-timer))))) > > I see, so basically from shepherd use just the procedure, and craft the > rest of the action by hand. Thank you for the advice. :) Yes, we cannot use ‘timer-trigger-action’ on the Guix side, because the Guix code expects a (shepherd-action …) thing. But that’s okay. We should probably factorize in Guix as well: (define timer-trigger-action (shepherd-action (name 'trigger") (documentation "Trigger the action associated with this timer.") (procedure #~trigger-timer))) Ludo’.
