summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-02-25 18:58:01 +0000
committerLudovic Courtès <ludo@gnu.org>2023-03-03 17:55:33 +0100
commit00767d967d2f70d53bb7494ac09e0e7c44323697 (patch)
tree349e9944e001bb93d3ffb1256103f4ae935b2764 /doc
parent3b2e88011a485293bd11b25466ffbaa8791ec64a (diff)
services: desktop: Deprecate 'elogind-service' procedure.
* doc/guix.texi (Desktop Services): Replace 'elogind-service' with 'elogind-service-type'. * gnu/services/desktop.scm (elogind-service): Deprecate procedure. (desktop-services-for-system): Use elogind-service-type. * gnu/tests/lightdm.scm (minimal-desktop-services): Ditto. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi166
1 files changed, 101 insertions, 65 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 61359183f17..e0563f493ff 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -23320,77 +23320,113 @@ and policy files. For example, to allow avahi-daemon to use the system bus,
23320@var{services} must be equal to @code{(list avahi)}. 23320@var{services} must be equal to @code{(list avahi)}.
23321@end deffn 23321@end deffn
23322 23322
23323@deffn {Scheme Procedure} elogind-service [#:config @var{config}] 23323@subsubheading Elogind
23324Return a service that runs the @code{elogind} login and 23324
23325seat management daemon. @uref{https://github.com/elogind/elogind, 23325@uref{https://github.com/elogind/elogind, Elogind} is a login and seat
23326Elogind} exposes a D-Bus interface that can be used to know which users 23326management daemon that also handles most system-level power events for a
23327computer, for example suspending the system when a lid is closed, or
23328shutting it down when the power button is pressed.
23329
23330It also provides a D-Bus interface that can be used to know which users
23327are logged in, know what kind of sessions they have open, suspend the 23331are logged in, know what kind of sessions they have open, suspend the
23328system, inhibit system suspend, reboot the system, and other tasks. 23332system, inhibit system suspend, reboot the system, and other tasks.
23329 23333
23330Elogind handles most system-level power events for a computer, for 23334@defvar elogind-service-type
23331example suspending the system when a lid is closed, or shutting it down 23335Type of the service that runs @command{elogind}, a login and
23332when the power button is pressed. 23336seat management daemon. The value for this service is a
23337@code{<elogind-configuration>} object.
23338@end defvar
23333 23339
23334The @var{config} keyword argument specifies the configuration for 23340@c TODO: field descriptions. This is best done by refactoring
23335elogind, and should be the result of an @code{(elogind-configuration 23341@c elogind-configuration to use define-configuration which embeds the
23336(@var{parameter} @var{value})...)} invocation. Available parameters and 23342@c descriptions in the code and then use configuration->documentation.
23337their default values are: 23343@deftp {Data Type} elogind-configuration
23344Data type representing the configuration of @command{elogind}.
23345
23346@table @asis
23347@item @code{elogind} (default: @code{elogind}) (type: file-like)
23348...
23349
23350@item @code{kill-user-processes?} (default: @code{#f}) (type: boolean)
23351...
23352
23353@item @code{kill-only-users} (default: @code{'()}) (type: list)
23354...
23355
23356@item @code{kill-exclude-users} (default: @code{'("root")}) (type: list-of-string)
23357...
23358
23359@item @code{inhibit-delay-max-seconds} (default: @code{5}) (type: integer)
23360...
23361
23362@item @code{handle-power-key} (default: @code{'poweroff}) (type: symbol)
23363...
23364
23365@item @code{handle-suspend-key} (default: @code{'suspend}) (type: symbol)
23366...
23367
23368@item @code{handle-hibernate-key} (default: @code{'hibernate}) (type: symbol)
23369...
23370
23371@item @code{handle-lid-switch} (default: @code{'suspend}) (type: symbol)
23372...
23373
23374@item @code{handle-lid-switch-docked} (default: @code{'ignore}) (type: symbol)
23375...
23376
23377@item @code{handle-lid-switch-external-power} (default: @code{*unspecified*}) (type: symbol)
23378...
23379
23380@item @code{power-key-ignore-inhibited?} (default: @code{#f}) (type: boolean)
23381...
23382
23383@item @code{suspend-key-ignore-inhibited?} (default: @code{#f}) (type: boolean)
23384...
23385
23386@item @code{hibernate-key-ignore-inhibited?} (default: @code{#f}) (type: boolean)
23387...
23388
23389@item @code{lid-switch-ignore-inhibited?} (default: @code{#t}) (type: boolean)
23390...
23391
23392@item @code{holdoff-timeout-seconds} (default: @code{30}) (type: integer)
23393...
23394
23395@item @code{idle-action} (default: @code{'ignore}) (type: symbol)
23396...
23397
23398@item @code{idle-action-seconds} (default: @code{(* 30 60)}) (type: integer)
23399...
23400
23401@item @code{runtime-directory-size-percent} (default: @code{10}) (type: integer)
23402...
23403
23404@item @code{runtime-directory-size} (default: @code{#f}) (type: integer)
23405...
23406
23407@item @code{remove-ipc?} (default: @code{#t}) (type: boolean)
23408...
23409
23410@item @code{suspend-state} (default: @code{'("mem" "standby" "freeze")}) (type: list)
23411...
23412
23413@item @code{suspend-mode} (default: @code{'()}) (type: list)
23414...
23415
23416@item @code{hibernate-state} (default: @code{'("disk")}) (type: list)
23417...
23418
23419@item @code{hibernate-mode} (default: @code{'("platform" "shutdown")}) (type: list)
23420...
23421
23422@item @code{hybrid-sleep-state} (default: @code{'("disk")}) (type: list)
23423...
23424
23425@item @code{hybrid-sleep-mode} (default: @code{'("suspend" "platform" "shutdown")}) (type: list)
23426...
23338 23427
23339@table @code
23340@item kill-user-processes?
23341@code{#f}
23342@item kill-only-users
23343@code{()}
23344@item kill-exclude-users
23345@code{("root")}
23346@item inhibit-delay-max-seconds
23347@code{5}
23348@item handle-power-key
23349@code{poweroff}
23350@item handle-suspend-key
23351@code{suspend}
23352@item handle-hibernate-key
23353@code{hibernate}
23354@item handle-lid-switch
23355@code{suspend}
23356@item handle-lid-switch-docked
23357@code{ignore}
23358@item handle-lid-switch-external-power
23359@code{*unspecified*}
23360@item power-key-ignore-inhibited?
23361@code{#f}
23362@item suspend-key-ignore-inhibited?
23363@code{#f}
23364@item hibernate-key-ignore-inhibited?
23365@code{#f}
23366@item lid-switch-ignore-inhibited?
23367@code{#t}
23368@item holdoff-timeout-seconds
23369@code{30}
23370@item idle-action
23371@code{ignore}
23372@item idle-action-seconds
23373@code{(* 30 60)}
23374@item runtime-directory-size-percent
23375@code{10}
23376@item runtime-directory-size
23377@code{#f}
23378@item remove-ipc?
23379@code{#t}
23380@item suspend-state
23381@code{("mem" "standby" "freeze")}
23382@item suspend-mode
23383@code{()}
23384@item hibernate-state
23385@code{("disk")}
23386@item hibernate-mode
23387@code{("platform" "shutdown")}
23388@item hybrid-sleep-state
23389@code{("disk")}
23390@item hybrid-sleep-mode
23391@code{("suspend" "platform" "shutdown")}
23392@end table 23428@end table
23393@end deffn 23429@end deftp
23394 23430
23395@deffn {Scheme Procedure} accountsservice-service @ 23431@deffn {Scheme Procedure} accountsservice-service @
23396 [#:accountsservice @var{accountsservice}] 23432 [#:accountsservice @var{accountsservice}]