summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
author45mg <[email protected]>2024-12-27 07:15:02 -0500
committerLudovic Courtès <[email protected]>2024-12-30 13:49:57 +0100
commit8695dcf9d2fb967377969b109e7aaef9fb500c40 (patch)
tree6406ea073409d3c7a2adda4ab77945c47f3bbc88 /nix
parentaefe57c69ffb2892df8e180b5487a4ac705f42e3 (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 <[email protected]> Signed-off-by: Ludovic Courtès <[email protected]>
Diffstat (limited to 'nix')
0 files changed, 0 insertions, 0 deletions