guix/gnu/services
45mg 8695dcf9d2
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>
2024-12-30 13:49:57 +01:00
..
admin.scm services: resize-file-system: Remove invalid default value. 2024-12-30 11:01:43 +01:00
audio.scm
auditd.scm
authentication.scm
avahi.scm
backup.scm
base.scm services: syslog: fix configuration file argument 2024-12-25 23:51:04 +01:00
certbot.scm services: certbot: Add certbot-configuration-package to profile. 2024-09-03 13:59:33 +02:00
cgit.scm
ci.scm
configuration.scm services: configuration: Document multiple configurations per field. 2024-10-14 14:08:43 +02:00
containers.scm services: rootless-podman: Fix PATH lookup for Shepherd services. 2024-12-25 23:51:10 +01:00
cuirass.scm services: cuirass: Run in a UTF-8 locale. 2024-12-12 12:52:07 +01:00
cups.scm
databases.scm gnu: postgresql-configuration: Unset default postgresql. 2024-11-16 18:13:02 +01:00
dbus.scm services: polkit: Migrate to (gnu system privilege). 2024-09-08 02:00:00 +02:00
desktop.scm services: elogind: Support hook directories. 2024-12-30 13:49:57 +01:00
dict.scm
dns.scm
docker.scm privilege: Add file-like->setuid-program helper. 2024-09-08 02:00:00 +02:00
file-sharing.scm
games.scm services: Extend udev rules in joycond-service-type. 2024-10-07 01:20:22 +09:00
ganeti.scm gnu: Replace (almost) all uses of /run/setuid-programs. 2024-08-11 02:00:00 +02:00
getmail.scm
guix.scm services: guix-data-service: Support specifying configuration. 2024-12-16 09:20:40 +00:00
herd.scm
hurd.scm
kerberos.scm
ldap.scm
lightdm.scm gnu: lightdm-service-type: Add lightdm.conf to /etc/lightdm. 2024-12-16 09:54:23 +09:00
linux.scm
lirc.scm
mail.scm services: Refactor opensmtpd-set-gids. 2024-08-18 02:00:00 +02:00
mcron.scm services: mcron: Fix home version not respecting user PATH variable. 2024-08-28 16:37:32 +02:00
messaging.scm
monitoring.scm gnu: Replace (almost) all uses of /run/setuid-programs. 2024-08-11 02:00:00 +02:00
networking.scm services: iptables: Provide a default value. 2024-12-18 18:32:41 +01:00
nfs.scm
nix.scm
pam-mount.scm
pm.scm gnu: Add powertop-service-type. 2024-11-23 16:09:25 +01:00
rsync.scm
samba.scm
science.scm
sddm.scm services: sddm: Adjust pass env. 2024-07-18 10:45:19 +08:00
security-token.scm
security.scm
shepherd.scm services: shepherd: Remove ‘call-with-{input,output}-file’ replacements. 2024-12-09 23:15:44 +01:00
sound.scm
spice.scm
ssh.scm
syncthing.scm services: syncthing: incorrect guessing of HOME variable 2024-08-21 19:04:25 +02:00
sysctl.scm
telephony.scm
upnp.scm services: readymedia: Add trailing newline after media_dir lines. 2024-10-20 12:08:01 +01:00
version-control.scm
virtualization.scm services: hurd-vm: Set overload-threshold to 1.8. 2024-12-10 17:43:49 +01:00
vnc.scm
vpn.scm services: wireguard: Support lists of gexps for most fields. 2024-12-06 20:09:28 +01:00
web.scm services: nginx-upstream-configuration: Allow file-like objects 2024-11-20 23:41:08 +01:00
xorg.scm gnu: set-xorg-configuration: Update code comment. 2024-12-17 18:12:22 +02:00