anchor.diff:  
     config = mkIf cfg.enable {
   
  -    environment.etc = singleton {
  -      source = ipUpScript;
  -      target = "NetworkManager/dispatcher.d/01nixos-ip-up";
  -    };
  +    environment.etc = [
  +      { source = ipUpScript;
  +        target = "NetworkManager/dispatcher.d/01nixos-ip-up";
  +      }
  +      { source = configFile;
  +        target = "NetworkManager/NetworkManager.conf";
  +      }
  +    ];
   
       environment.systemPackages = cfg.packages;
   
  
positive.code:         Extra packages that provide NetworkManager plugins.
        '';
        merge = mergeListOption;
        apply = list: [ pkgs.networkmanager pkgs.modemmanager ] ++ list;
      };
    };
  
  
negative.code:       gid = config.ids.gids.networkmanager;
      };
  
      systemd.packages = cfg.packages;
  
      # Create an initialisation service that both starts
      # NetworkManager when network.target is reached,
      # and sets up necessary directories for NM.
      systemd.services."NetworkManager-init" = {
        description = "NetworkManager initialisation";
        wantedBy = [ "network.target" ];
        partOf = [ "NetworkManager.service" ];
        wants = [ "NetworkManager.service" ];
        before = [ "NetworkManager.service" ];
        script = ''
          mkdir -m 700 -p /etc/NetworkManager/system-connections
          mkdir -m 755 -p ${stateDirs}
        '';
        serviceConfig = {
          Type = "oneshot";
        };
      };
  
      # Turn off NixOS' network management
      networking = {
        useDHCP = false;
        wireless.enable = false;
      };
  
      security.polkit.permissions = polkitConf;
  
  