anchor.diff:        basePackages = mkOption {
           type = types.attrsOf types.package;
           default = { inherit (pkgs)
  -                            networkmanager modemmanager wpa_supplicant crda
  +                            networkmanager modemmanager crda
                               networkmanager-openvpn networkmanager-vpnc
                               networkmanager-openconnect networkmanager-fortisslvpn
  -                            networkmanager-l2tp networkmanager-iodine; };
  +                            networkmanager-l2tp networkmanager-iodine; }
  +                  // optionalAttrs (!delegateWireless) { inherit (pkgs) wpa_supplicant; };
           internal = true;
         };
   
  
positive.code: 
    dynamicHostsEnabled =
      cfg.dynamicHosts.enable && cfg.dynamicHosts.hostsDirs != {};
  
    # /var/lib/misc is for dnsmasq.leases.
    stateDirs = "/var/lib/NetworkManager /var/lib/dhclient /var/lib/misc";
  
negative.code:   config = mkIf cfg.enable {
  
      assertions = [
        { assertion = config.networking.wireless.enable == true -> cfg.unmanaged != [];
          message = ''
            You can not use networking.networkmanager with networking.wireless.
            Except if you mark some interfaces as <literal>unmanaged</literal> by NetworkManager.
          '';
        }
        { assertion = !dynamicHostsEnabled || (dynamicHostsEnabled && cfg.dns == "dnsmasq");
          message = ''
  