diff --git a/modules/services/system/nscd.nix b/modules/services/system/nscd.nix index 6f35cd30f582..ca5ac428a9dc 100644 --- a/modules/services/system/nscd.nix +++ b/modules/services/system/nscd.nix @@ -64,7 +64,12 @@ in description = "Invalidate NSCD cache"; startOn = "ip-up or config-changed"; task = true; - exec = "${pkgs.glibc}/sbin/nscd --invalidate hosts"; + path = [ pkgs.glibc ]; + exec = '' + nscd --invalidate=passwd + nscd --invalidate=group + nscd --invalidate=hosts + ''; }; };