anchor.diff:      ResultActive=yes
     '';
   
  -  ipUpScript = pkgs.writeScript "01nixos-ip-up" ''
  +  ipUpScript = writeScript "01nixos-ip-up" ''
       #!/bin/sh
       if test "$2" = "up"; then
         ${config.systemd.package}/bin/systemctl start ip-up.target
  
positive.code:       gid = config.ids.gids.networkmanager;
      };
  
      jobs.networkmanager = {
        startOn = "started network-interfaces";
        stopOn = "stopping network-interfaces";
  
        path = [ pkgs.networkmanager ];
  
        preStart = ''
          mkdir -m 755 -p /etc/NetworkManager
          mkdir -m 700 -p /etc/NetworkManager/system-connections
          mkdir -m 755 -p ${stateDirs}
        '';
  
         exec = "NetworkManager --config=${configFile} --no-daemon";
      };
  
      networking.useDHCP = false;
  
      networking.wireless.enable = true;
  
      security.polkit.permissions = polkitConf;
  
  
negative.code: 
    config = mkIf cfg.enable {
  
      environment.etc = [
        { source = ipUpScript;
          target = "NetworkManager/dispatcher.d/01nixos-ip-up";
        }
        { source = configFile;
          target = "NetworkManager/NetworkManager.conf";
        }
      ];
  
      environment.systemPackages = cfg.packages;
  
  