services: elogind: Fix default behavior for lid close.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Wed, 10 Aug 2022 03:51:48 +0000 (23:51 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Wed, 10 Aug 2022 04:33:30 +0000 (00:33 -0400)
commit59ee837d8b11d7d688045b601e8b240ccbdbe7c7
tree8e22a84fbfbc5e04af554a86e6f341174c73f23c
parent4b494878380920c8c7eecccd1f299164dd4a2c3f
services: elogind: Fix default behavior for lid close.

Fixes <https://issues.guix.gnu.org/57052>, which was a behavior change
introduced inadvertently in 4c698cd51209a0102477478b026ea04bd7e45908.

* gnu/services/desktop.scm (<elogind-configuration>)
[handle-lid-switch-external-power]: Default to *unspecified*, which serializes
to nothing.  This matches upstream behavior, meaning that even when plugged to
a power cord, a laptop will suspend when the lid is closed.
* doc/guix.texi (Desktop Services): Update doc.

Reported-by: Cairn <cairn@pm.me>
doc/guix.texi
gnu/services/desktop.scm