aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-01-17 17:53:57 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-01-17 17:58:35 +0100
commit65cd70ce42d4a46a65f284cbd1386e3e169383e4 (patch)
treef43b0087e3f57715ae8a3eae973fa6b177292b79 /doc
parent3d7ad1dc9f97a07d7fe355dcc9884373b21bca62 (diff)
downloadguix-65cd70ce42d4a46a65f284cbd1386e3e169383e4.tar
guix-65cd70ce42d4a46a65f284cbd1386e3e169383e4.tar.gz
services: openssh: Add escape hatch.
* gnu/services/ssh.scm (<openssh-configuration>)[extra-content]: New field. * doc/guix.texi (Networking Services): Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index ee7cf1da14..245a18bc70 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -12644,6 +12644,19 @@ This is a symbol specifying the logging level: @code{quiet}, @code{fatal},
@code{error}, @code{info}, @code{verbose}, @code{debug}, etc. See the man
page for @file{sshd_config} for the full list of level names.
+@item @code{extra-content} (default: @code{""})
+This field can be used to append arbitrary text to the configuration file. It
+is especially useful for elaborate configurations that cannot be expressed
+otherwise. This configuration, for example, would generally disable root
+logins, but permit them from one specific IP address:
+
+@example
+(openssh-configuration
+ (extra-content "\
+Match Address 192.168.0.1
+ PermitRootLogin yes"))
+@end example
+
@end table
@end deftp