anchor.diff:          type = types.lines;
           default = builtins.readFile ./nscd.conf;
           description = "Configuration to use for Name Service Cache Daemon.";
  +      };
  +
  +      package = mkOption {
  +        type = types.package;
  +        default = if pkgs.stdenv.hostPlatform.libc == "glibc"
  +          then pkgs.stdenv.cc.libc.bin
  +          else pkgs.glibc.bin;
  +        description = "package containing the nscd binary to be used by the service";
         };
   
       };
  
positive.code:         # files. So prefix the ExecStart command with "!" to prevent systemd
          # from dropping privileges early. See ExecStart in systemd.service(5).
          serviceConfig =
            { ExecStart = "!@${nscd}/sbin/nscd nscd";
              Type = "forking";
              DynamicUser = true;
              RuntimeDirectory = "nscd";
              PIDFile = "/run/nscd/nscd.pid";
              Restart = "always";
              ExecReload =
                [ "${nscd}/sbin/nscd --invalidate passwd"
                  "${nscd}/sbin/nscd --invalidate group"
                  "${nscd}/sbin/nscd --invalidate hosts"
                ];
            };
        };
  
negative.code: 
    nssModulesPath = config.system.nssModules.path;
    cfg = config.services.nscd;
  
  in
  
  