diff --git a/modules/config/ldap.nix b/modules/config/ldap.nix index 603ad8407cd1..0054f08d4391 100644 --- a/modules/config/ldap.nix +++ b/modules/config/ldap.nix @@ -223,6 +223,8 @@ mkIf cfg.enable { systemd.services = mkIf cfg.daemon.enable { nslcd = { wantedBy = [ "nss-user-lookup.target" ]; + wants = [ "network.target" ]; + after = [ "network.target" ]; path = [ nss_pam_ldapd ];