anchor.diff:            type = types.package;
             readOnly = true;
           };
  +
  +        config = mkOption {
  +          type = types.attrs;
  +          readOnly = true;
  +        };
  +
  +        options = mkOption {
  +          type = with types; listOf attrs;
  +          readOnly = true;
  +        };
         };
   
       };
  
positive.code:     export.build.nixosConfig = { ... }: {
        options = mapAttrsRecursiveCond (as: !(isDerivation as)) (_: _: mkOption {
          type = types.unspecified;
        }) filteredAttrs;
  
        config = filteredAttrs;
      };
  
      export.build.jsonFile = pkgs.writeText "config.json" (
        toJSON (filterAttrsRecursive (_: v: !(isFunction v)) filteredAttrs)
      );
  
    };
  }
  
negative.code: let
  
    cfg = config.export;
    opts = options.export;
  
    isPrefixOf = xs: ys: take (length xs) ys == xs;
  
    excludePath = path:
      path == [] ||
      any (exc: isPrefixOf exc path) cfg.excludeConfig;
  
    includePath = path:
      any (inc: isPrefixOf inc path) cfg.includeConfig;
  
  in {
    options = {
  