Subject: Re: [bug#74819] [PATCH v4] services: elogind: Support Hook Directories
From: Ludovic Courtès <[email-masked]>
To: 45mg <[email-masked]>
Cc: Maxim Cournoyer <[email-masked]>, [email-masked]
Date: Mon, 30 Dec 2024 12:26:43 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

45mg <[email-masked]> skribis:

> Allow the user to specify scripts to be added into Elogind's hook
> directories. These scripts will be run before/after
> suspend/hibernate/poweroff/reboot.
>
> Also allow setting the associated config options.
>
> * gnu/services/desktop.scm (elogind-configuration): add
> `system-sleep-hook-files`, `system-shutdown-hook-files`,
> and 4 new config options.
> (elogind-configuration-file): Add entries for the new config options
> under the `[Sleep]` section.
> (/etc/elogind): New function, to generate /etc/elogind directory.
> (elogind-service-type): Extend `etc-service-type` using `/etc/elogind`.
> * doc/guix.texi: Document the new options.
>
> Change-Id: I7e22cbaa9d031049b9d085ba0ce4cc8a8b4f16ff

I integrated the cosmetic changes Maxim proposed, tweaked the commit log
to better match our conventions, and applied it.

Thanks!

Ludo’.