diff options
author | 45mg <45mg.writes@gmail.com> | 2024-12-27 07:15:02 -0500 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-12-30 13:49:57 +0100 |
commit | 8695dcf9d2fb967377969b109e7aaef9fb500c40 (patch) | |
tree | 6406ea073409d3c7a2adda4ab77945c47f3bbc88 /nix/libutil/archive.cc | |
parent | aefe57c69ffb2892df8e180b5487a4ac705f42e3 (diff) |
services: elogind: Support hook directories.
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.
(elogind-etc-directory): New procedure.
(elogind-service-type): Extend `etc-service-type` using `/etc/elogind`.
* doc/guix.texi (Desktop Services): Document the new options.
Change-Id: I7e22cbaa9d031049b9d085ba0ce4cc8a8b4f16ff
Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'nix/libutil/archive.cc')
0 files changed, 0 insertions, 0 deletions