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: { config, pkgs, ... }:
  
  with pkgs.lib;
  
  let
    cfg = config.networking.networkmanager;
  
    stateDirs = "/var/lib/NetworkManager /var/lib/dhclient";
  
    configFile = pkgs.writeText "NetworkManager.conf" ''
      [main]
      plugins=keyfile
  
  
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;
  
  