summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2020-09-26 09:26:14 -0400
committerAaron Andersen <aaron@fosslib.net>2020-10-20 19:50:18 -0400
commitae02e1fe53eaad4075976cf0b2cfcfa10f45094a (patch)
tree04151fd4dfb85a8efa0040dec5ae5e1b60b638c6
parenta1acbfbfcb8cb81f0172ff543013793a4f6d492a (diff)
downloadnixpkgs-ae02e1fe53eaad4075976cf0b2cfcfa10f45094a.tar
nixpkgs-ae02e1fe53eaad4075976cf0b2cfcfa10f45094a.tar.gz
nixpkgs-ae02e1fe53eaad4075976cf0b2cfcfa10f45094a.tar.bz2
nixpkgs-ae02e1fe53eaad4075976cf0b2cfcfa10f45094a.tar.lz
nixpkgs-ae02e1fe53eaad4075976cf0b2cfcfa10f45094a.tar.xz
nixpkgs-ae02e1fe53eaad4075976cf0b2cfcfa10f45094a.tar.zst
nixpkgs-ae02e1fe53eaad4075976cf0b2cfcfa10f45094a.zip
nixos/ldap: minor cosmetic fixes
-rw-r--r--nixos/modules/config/ldap.nix22
1 files changed, 9 insertions, 13 deletions
diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix
index 943a2434617..e63f8c0d43e 100644
--- a/nixos/modules/config/ldap.nix
+++ b/nixos/modules/config/ldap.nix
@@ -59,22 +59,18 @@ in
 
     users.ldap = {
 
-      enable = mkOption {
-        type = types.bool;
-        default = false;
-        description = "Whether to enable authentication against an LDAP server.";
-      };
+      enable = mkEnableOption "authentication against an LDAP server";
 
       loginPam = mkOption {
         type = types.bool;
         default = true;
-        description = "Whether to include authentication against LDAP in login PAM";
+        description = "Whether to include authentication against LDAP in login PAM.";
       };
 
       nsswitch = mkOption {
         type = types.bool;
         default = true;
-        description = "Whether to include lookup against LDAP in NSS";
+        description = "Whether to include lookup against LDAP in NSS.";
       };
 
       server = mkOption {
@@ -131,7 +127,7 @@ in
           type = types.lines;
           description = ''
             Extra configuration options that will be added verbatim at
-            the end of the nslcd configuration file (nslcd.conf).
+            the end of the nslcd configuration file (<literal>nslcd.conf(5)</literal>).
           '' ;
         } ;
 
@@ -182,7 +178,7 @@ in
           description = ''
             Specifies the time limit (in seconds) to use when connecting
             to the directory server. This is distinct from the time limit
-            specified in <literal>users.ldap.timeLimit</literal> and affects
+            specified in <option>users.ldap.timeLimit</option> and affects
             the initial server connection only.
           '';
         };
@@ -199,7 +195,7 @@ in
             actually contact the directory server, and it is possible that
             a malformed configuration file will trigger reconnection. If
             <literal>soft</literal> is specified, then
-            <literal>nss_ldap</literal> will return immediately on server
+            <package>nss_ldap</package> will return immediately on server
             failure. All hard reconnect policies block with exponential
             backoff before retrying.
           '';
@@ -211,10 +207,10 @@ in
         type = types.lines;
         description = ''
           Extra configuration options that will be added verbatim at
-          the end of the ldap configuration file (ldap.conf).
-          If <literal>users.ldap.daemon</literal> is enabled, this
+          the end of the ldap configuration file (<literal>ldap.conf(5)</literal>).
+          If <option>users.ldap.daemon</option> is enabled, this
           configuration will not be used. In that case, use
-          <literal>users.ldap.daemon.extraConfig</literal> instead.
+          <option>users.ldap.daemon.extraConfig</option> instead.
         '' ;
       };