about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2018-12-06 15:43:50 +0100
committerJanne Heß <janne@hess.ooo>2018-12-13 15:14:59 +0100
commit3c54d6b2f8e7e59578f5c29a577c3d415e9febf5 (patch)
treec0609d075c7b376dd8d8b0d0fe4644c3879fb475 /nixos
parent3d4cb55b718cfab054e86e864c90220d040d1935 (diff)
downloadnixlib-3c54d6b2f8e7e59578f5c29a577c3d415e9febf5.tar
nixlib-3c54d6b2f8e7e59578f5c29a577c3d415e9febf5.tar.gz
nixlib-3c54d6b2f8e7e59578f5c29a577c3d415e9febf5.tar.bz2
nixlib-3c54d6b2f8e7e59578f5c29a577c3d415e9febf5.tar.lz
nixlib-3c54d6b2f8e7e59578f5c29a577c3d415e9febf5.tar.xz
nixlib-3c54d6b2f8e7e59578f5c29a577c3d415e9febf5.tar.zst
nixlib-3c54d6b2f8e7e59578f5c29a577c3d415e9febf5.zip
nixos/openldap: Support configuring the log level
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/databases/openldap.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/databases/openldap.nix b/nixos/modules/services/databases/openldap.nix
index 9f2bf5ef8a9c..e996211be7da 100644
--- a/nixos/modules/services/databases/openldap.nix
+++ b/nixos/modules/services/databases/openldap.nix
@@ -54,6 +54,13 @@ in
         description = "The database directory.";
       };
 
+      logLevel = mkOption {
+        type = types.str;
+        default = "0";
+        example = "acl trace";
+        description = "The log level selector of slapd.";
+      };
+
       configDir = mkOption {
         type = types.nullOr types.path;
         default = null;
@@ -139,7 +146,7 @@ in
         chown -R "${cfg.user}:${cfg.group}" "${cfg.dataDir}"
       '';
       serviceConfig.ExecStart =
-        "${openldap.out}/libexec/slapd -d 0 " +
+        "${openldap.out}/libexec/slapd -d ${cfg.logLevel} " +
           "-u '${cfg.user}' -g '${cfg.group}' " +
           "-h '${concatStringsSep " " cfg.urlList}' " +
           "${configOpts}";