aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Craven <david@craven.ch>2016-09-06 15:58:49 +0200
committerDavid Craven <david@craven.ch>2016-09-11 16:29:45 +0200
commit317d3b474ab5e0e62509dd1b5b2fbbf2e27c95fe (patch)
tree431940485b68866bb817e174ccbf85dcd1d88734 /doc
parent381000d794e970446a52b1ce2d4b79bc63e06f7b (diff)
downloadpatches-317d3b474ab5e0e62509dd1b5b2fbbf2e27c95fe.tar
patches-317d3b474ab5e0e62509dd1b5b2fbbf2e27c95fe.tar.gz
services: Add login-service.
* gnu/services/base.scm (%default-motd, <login-configuration>, login-pam-service, login-serivce-type, login-service): New variables. (<mingetty-configuration>, mingetty-shepherd-service, mingetty-serivce-type): Remove motd. Remove allow-empty-passwords?. Remove mingetty-pam-service. (%base-services): Add login-service. Remove motd.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi27
1 files changed, 22 insertions, 5 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 7ed8ee8130..41b8d5db0b 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -6753,8 +6753,7 @@ following in your operating system declaration:
(extra-options '("--gc-keep-derivations"))))
(mingetty-service-type config =>
(mingetty-configuration
- (inherit config)
- (motd (plain-file "motd" "Howdy!"))))))
+ (inherit config)))))
(operating-system
;; @dots{}
@@ -7619,6 +7618,27 @@ this:
Return a service that sets the host name to @var{name}.
@end deffn
+@deffn {Scheme Procedure} login-service @var{config}
+Return a service to run login according to @var{config}, a
+@code{<login-configuration>} object, which specifies the message of the day,
+among other things.
+@end deffn
+
+@deftp {Data Type} login-configuration
+This is the data type representing the configuration of login.
+
+@table @asis
+
+@item @code{motd}
+A file-like object containing the ``message of the day''.
+
+@item @code{allow-empty-passwords?} (default: @code{#t})
+Allow empty passwords by default so that first-time users can log in when
+the 'root' account has just been created.
+
+@end table
+@end deftp
+
@deffn {Scheme Procedure} mingetty-service @var{config}
Return a service to run mingetty according to @var{config}, a
@code{<mingetty-configuration>} object, which specifies the tty to run, among
@@ -7634,9 +7654,6 @@ implements console log-in.
@item @code{tty}
The name of the console this Mingetty runs on---e.g., @code{"tty1"}.
-@item @code{motd}
-A file-like object containing the ``message of the day''.
-
@item @code{auto-login} (default: @code{#f})
When true, this field must be a string denoting the user name under
which the system automatically logs in. When it is @code{#f}, a