anchor.diff:  { config, lib, pkgs, ... }:
   
  -with pkgs;
  -with lib;
  +with {
  +  inherit (lib)
  +    concatStrings
  +    concatStringsSep
  +    mkIf
  +    mkOption
  +    optionals
  +    optionalString
  +    types;
  +};
   
   let
     cfg = config.networking.networkmanager;
  
positive.code:     fi
    '';
  
    ns = xs: writeText "nameservers" (
      concatStrings (map (s: "nameserver ${s}\n") xs)
    );
  
    overrideNameserversScript = writeScript "02overridedns" ''
      #!/bin/sh
      tmp=`${coreutils}/bin/mktemp`
      ${gnused}/bin/sed '/nameserver /d' /etc/resolv.conf > $tmp
      ${gnugrep}/bin/grep 'nameserver ' /etc/resolv.conf | \
        ${gnugrep}/bin/grep -vf ${ns (cfg.appendNameservers ++ cfg.insertNameservers)} > $tmp.ns
      ${optionalString (cfg.appendNameservers != []) "${coreutils}/bin/cat $tmp $tmp.ns ${ns cfg.appendNameservers} > /etc/resolv.conf"}
      ${optionalString (cfg.insertNameservers != []) "${coreutils}/bin/cat $tmp ${ns cfg.insertNameservers} $tmp.ns > /etc/resolv.conf"}
      ${coreutils}/bin/rm -f $tmp $tmp.ns
    '';
  
    dispatcherTypesSubdirMap = {
  
negative.code:     });
    '';
  
    ipUpScript = pkgs.writeScript "01nixos-ip-up" ''
      #!/bin/sh
      if test "$2" = "up"; then
        ${config.systemd.package}/bin/systemctl start ip-up.target
  