options.myServices.databases = {
openldap = {
enable = lib.mkOption {
- default = cfg.enable;
+ default = false;
example = true;
description = "Whether to enable ldap";
type = lib.types.bool;
'';
};
+ services.filesWatcher.openldap = {
+ restart = true;
+ paths = [ "${config.secrets.location}/ldap/" ];
+ };
+
services.openldap = {
enable = true;
dataDir = cfg.dataDir;