diff options
author | Aaron Andersen <aaron@fosslib.net> | 2020-09-26 09:07:54 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2020-10-20 19:50:17 -0400 |
commit | d89aff670a204496421a4b67043749ef3c4d319b (patch) | |
tree | bf7b6aeed79509d5368843d8964ff5b4f38320e6 /nixos/modules/config | |
parent | f6cd17269ea0076631938886d8ed4764c71d7731 (diff) |
nixos/ldap: restart nslcd when configuration changes
Diffstat (limited to 'nixos/modules/config')
-rw-r--r-- | nixos/modules/config/ldap.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix index 1a5dbcd4e26ba..98ebb5f7004f5 100644 --- a/nixos/modules/config/ldap.nix +++ b/nixos/modules/config/ldap.nix @@ -276,7 +276,12 @@ in } >"$conf" mv -fT "$conf" /run/nslcd/nslcd.conf ''; - restartTriggers = [ "/run/nslcd/nslcd.conf" ]; + + restartTriggers = [ + nslcdConfig + cfg.bind.passwordFile + cfg.daemon.rootpwmodpwFile + ]; serviceConfig = { ExecStart = "${nslcdWrapped}/bin/nslcd"; |