anchor.diff:          The final CRI-O package (including extra packages).
         '';
       };
  +
  +    networkDir = mkOption {
  +      type = types.nullOr types.path;
  +      default = null;
  +      description = "Override the network_dir option.";
  +      internal = true;
  +    };
     };
   
     config = mkIf cfg.enable {
  
positive.code: { config, lib, pkgs, ... }:
  
  with lib;
  
  let
    cfg = config.virtualisation.cri-o;
  
    crioPackage = (pkgs.cri-o.override { inherit (cfg) extraPackages; });
  
    # Copy configuration files to avoid having the entire sources in the system closure
    copyFile = filePath: pkgs.runCommandNoCC (builtins.unsafeDiscardStringContext (builtins.baseNameOf filePath)) {} ''
      cp ${filePath} $out
    '';
  in
  
negative.code: 
        [crio.network]
        plugin_dirs = ["${pkgs.cni-plugins}/bin/"]
        ${optionalString (cfg.networkDir != null) ''network_dir = "${cfg.networkDir}"''}
  
        [crio.runtime]
        cgroup_manager = "systemd"
  