From d8c16bc54ac0279597733db3bd4a5edaef6fa8c0 Mon Sep 17 00:00:00 2001 From: Michael Raitza Date: Mon, 25 Jun 2018 16:22:26 +0200 Subject: [PATCH] resolvconf.conf: Remove forced NSCD service restart Forcibly restarting NSCD is unnecessary and breaks setups that use SSSD for authentication. NSCD is capable of detecting changes to /etc/resolv.conf and invalidating its caches internally. Restarting NSCD/SSSD breaks user name and UID resolution. --- nixos/modules/config/networking.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index 4101ef82f3e1b..48c3b41bc0911 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -231,10 +231,6 @@ in # a collision with an apparently unrelated environment # variable with the same name exported by dhcpcd. interface_order='lo lo[0-9]*' - '' + optionalString config.services.nscd.enable '' - # Invalidate the nscd cache whenever resolv.conf is - # regenerated. - libc_restart='${pkgs.systemd}/bin/systemctl try-restart --no-block nscd.service 2> /dev/null' '' + optionalString (length resolvconfOptions > 0) '' # Options as described in resolv.conf(5) resolv_conf_options='${concatStringsSep " " resolvconfOptions}'