diff options
author | Julien Moutinho <julm+nix@autogeree.net> | 2018-09-17 03:23:32 +0200 |
---|---|---|
committer | Julien Moutinho <julm+nix@autogeree.net> | 2019-01-09 17:45:15 +0100 |
commit | 4af7db9c731ba5a41fd53b93872e9fe01037c8c7 (patch) | |
tree | ac5d27dc029cc9ac6b299738bad8e68995832d32 | |
parent | ec3e81beafacce0088baf50c116a26460000c012 (diff) | |
download | nixpkgs-4af7db9c731ba5a41fd53b93872e9fe01037c8c7.tar nixpkgs-4af7db9c731ba5a41fd53b93872e9fe01037c8c7.tar.gz nixpkgs-4af7db9c731ba5a41fd53b93872e9fe01037c8c7.tar.bz2 nixpkgs-4af7db9c731ba5a41fd53b93872e9fe01037c8c7.tar.lz nixpkgs-4af7db9c731ba5a41fd53b93872e9fe01037c8c7.tar.xz nixpkgs-4af7db9c731ba5a41fd53b93872e9fe01037c8c7.tar.zst nixpkgs-4af7db9c731ba5a41fd53b93872e9fe01037c8c7.zip |
nixos/nslcd: restart when nslcd.conf changes
-rw-r--r-- | nixos/modules/config/ldap.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix index 0693e896f71..9a84dd5f5c4 100644 --- a/nixos/modules/config/ldap.nix +++ b/nixos/modules/config/ldap.nix @@ -242,6 +242,13 @@ in ''} ''; + # NOTE: because one cannot pass a custom config path to `nslcd` + # (which is only able to use `/etc/nslcd.conf`) + # changes in `nslcdConfig` won't change `serviceConfig`, + # and thus won't restart `nslcd`. + # Therefore `restartTriggers` is used on `/etc/nslcd.conf`. + restartTriggers = [ nslcdConfig.source ]; + serviceConfig = { ExecStart = "${nss_pam_ldapd}/sbin/nslcd"; Type = "forking"; |