anchor.diff:    # /var/lib/misc is for dnsmasq.leases.
     stateDirs = "/var/lib/NetworkManager /var/lib/dhclient /var/lib/misc";
   
  -  configFile = writeText "NetworkManager.conf" ''
  +  configFile = pkgs.writeText "NetworkManager.conf" ''
       [main]
       dhcp=${pkgs.networkmanager.dhcp-client}
       plugins=keyfile
  
positive.code:         description = ''
            Whether to use NetworkManager to obtain an IP address and other
            configuration for all network interfaces that are not manually
            configured. If enabled, a group <literal>networkmanager</literal>
            will be created. Add all users that should have permission
            to change network settings to this group.
          '';
        };
  
  
negative.code: { config, lib, pkgs, ... }:
  
  with {
    inherit (lib)
      concatStrings
      concatStringsSep
      mkIf
      mkOption
      optionals
      optionalString
      types;
  };
  
  let
    cfg = config.networking.networkmanager;
  