diff options
author | Janne Heß <janne@hess.ooo> | 2018-12-06 15:43:50 +0100 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2018-12-13 15:14:59 +0100 |
commit | 3c54d6b2f8e7e59578f5c29a577c3d415e9febf5 (patch) | |
tree | c0609d075c7b376dd8d8b0d0fe4644c3879fb475 /nixos/modules | |
parent | 3d4cb55b718cfab054e86e864c90220d040d1935 (diff) |
nixos/openldap: Support configuring the log level
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/databases/openldap.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/databases/openldap.nix b/nixos/modules/services/databases/openldap.nix index 9f2bf5ef8a9cc..e996211be7da2 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}"; |