---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "options",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "cfg",
       position: (3, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (3, 9),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "services",
        position: (3, 16),
       },
       Raw {
        content: "hadoop",
        position: (3, 25),
       },
      ],
     },
     default: None,
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "opt",
       position: (4, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "options",
      position: (4, 9),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "services",
        position: (4, 17),
       },
       Raw {
        content: "hadoop",
        position: (4, 26),
       },
      ],
     },
     default: None,
    },
   ),
  ],
  target: With {
   expression: Variable {
    identifier: "lib",
    position: (6, 6),
   },
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "imports",
         position: (8, 3),
        },
       ],
      },
      List {
       elements: [
        Path {
         parts: [
          Raw {
           content: "./yarn.nix",
           position: (8, 15),
          },
         ],
        },
        Path {
         parts: [
          Raw {
           content: "./hdfs.nix",
           position: (8, 26),
          },
         ],
        },
       ],
       position: (8, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (10, 3),
        },
        Raw {
         content: "services",
         position: (10, 11),
        },
        Raw {
         content: "hadoop",
         position: (10, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "coreSite",
            position: (11, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (11, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (12, 7),
                },
               ],
              },
              Map {
               bindings: [],
               recursive: false,
               position: (12, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (13, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (13, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "attrsOf",
                   position: (13, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (13, 28),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "anything",
                    position: (13, 34),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (14, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (14, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "{\n  \"fs.defaultFS\" = \"hdfs://localhost\";\n}\n",
                   position: (15, 1),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (19, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Hadoop core-site.xml definition\n<link xlink:href=\"https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/core-default.xml\"/>\n",
                 position: (20, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (11, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hdfsSite",
            position: (25, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (25, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (26, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "dfs.namenode.rpc-bind-host",
                       position: (27, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "0.0.0.0",
                    position: (27, 41),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (26, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (29, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (29, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "attrsOf",
                   position: (29, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (29, 28),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "anything",
                    position: (29, 34),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (30, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (30, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "{\n  \"dfs.nameservices\" = \"namenode1\";\n}\n",
                   position: (31, 1),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (35, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Hadoop hdfs-site.xml definition\n<link xlink:href=\"https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml\"/>\n",
                 position: (36, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (25, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "mapredSite",
            position: (41, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (41, 18),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (42, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "mapreduce.framework.name",
                       position: (43, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "yarn",
                    position: (43, 39),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.app.mapreduce.am.env",
                       position: (44, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "HADOOP_MAPRED_HOME=",
                    position: (44, 40),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (44, 61),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (44, 65),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/lib/",
                    position: (44, 73),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (44, 80),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (44, 84),
                       },
                       Raw {
                        content: "untarDir",
                        position: (44, 92),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "mapreduce.map.env",
                       position: (45, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "HADOOP_MAPRED_HOME=",
                    position: (45, 32),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (45, 53),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (45, 57),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/lib/",
                    position: (45, 65),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (45, 72),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (45, 76),
                       },
                       Raw {
                        content: "untarDir",
                        position: (45, 84),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "mapreduce.reduce.env",
                       position: (46, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "HADOOP_MAPRED_HOME=",
                    position: (46, 35),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (46, 56),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (46, 60),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/lib/",
                    position: (46, 68),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (46, 75),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (46, 79),
                       },
                       Raw {
                        content: "untarDir",
                        position: (46, 87),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (42, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (48, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (48, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "{\n  \"mapreduce.framework.name\" = \"yarn\";\n  \"yarn.app.mapreduce.am.env\" = \"HADOOP_MAPRED_HOME=",
                   position: (49, 1),
                  },
                  Raw {
                   content: "$",
                   position: (51, 61),
                  },
                  Raw {
                   content: "{config.",
                   position: (51, 64),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (51, 74),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (51, 78),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "}/lib/",
                   position: (51, 86),
                  },
                  Raw {
                   content: "$",
                   position: (51, 92),
                  },
                  Raw {
                   content: "{config.",
                   position: (51, 95),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (51, 105),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (51, 109),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: ".untarDir}\";\n  \"mapreduce.map.env\" = \"HADOOP_MAPRED_HOME=",
                   position: (51, 117),
                  },
                  Raw {
                   content: "$",
                   position: (52, 53),
                  },
                  Raw {
                   content: "{config.",
                   position: (52, 56),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (52, 66),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (52, 70),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "}/lib/",
                   position: (52, 78),
                  },
                  Raw {
                   content: "$",
                   position: (52, 84),
                  },
                  Raw {
                   content: "{config.",
                   position: (52, 87),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (52, 97),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (52, 101),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: ".untarDir}\";\n  \"mapreduce.reduce.env\" = \"HADOOP_MAPRED_HOME=",
                   position: (52, 109),
                  },
                  Raw {
                   content: "$",
                   position: (53, 56),
                  },
                  Raw {
                   content: "{config.",
                   position: (53, 59),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (53, 69),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (53, 73),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "}/lib/",
                   position: (53, 81),
                  },
                  Raw {
                   content: "$",
                   position: (53, 87),
                  },
                  Raw {
                   content: "{config.",
                   position: (53, 90),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (53, 100),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (53, 104),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: ".untarDir}\";\n}\n",
                   position: (53, 112),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (56, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (56, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "attrsOf",
                   position: (56, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (56, 28),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "anything",
                    position: (56, 34),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (57, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (57, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "options.services.hadoop.mapredSite.default // {\n  \"mapreduce.map.java.opts\" = \"-Xmx900m -XX:+UseParallelGC\";\n}\n",
                   position: (58, 1),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (62, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Hadoop mapred-site.xml definition\n<link xlink:href=\"https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/mapred-default.xml\"/>\n",
                 position: (63, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (41, 27),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "yarnSite",
            position: (68, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (68, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (69, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.admin-env",
                       position: (70, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "PATH=$PATH",
                    position: (70, 41),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.aux-services",
                       position: (71, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "mapreduce_shuffle",
                    position: (71, 44),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.aux-services.mapreduce_shuffle.class",
                       position: (72, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "org.apache.hadoop.mapred.ShuffleHandler",
                    position: (72, 68),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.bind-host",
                       position: (73, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "0.0.0.0",
                    position: (73, 41),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.container-executor.class",
                       position: (74, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor",
                    position: (74, 56),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.env-whitelist",
                       position: (75, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,CLASSPATH_PREPEND_DISTCACHE,HADOOP_YARN_HOME,HADOOP_HOME,LANG,TZ",
                    position: (75, 45),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.linux-container-executor.group",
                       position: (76, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "hadoop",
                    position: (76, 62),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.linux-container-executor.path",
                       position: (77, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "/run/wrappers/yarn-nodemanager/bin/container-executor",
                    position: (77, 61),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.log-dirs",
                       position: (78, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "/var/log/hadoop/yarn/nodemanager",
                    position: (78, 40),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.resourcemanager.bind-host",
                       position: (79, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "0.0.0.0",
                    position: (79, 45),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.resourcemanager.scheduler.class",
                       position: (80, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler",
                    position: (80, 51),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (69, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (82, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (82, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "attrsOf",
                   position: (82, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (82, 28),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "anything",
                    position: (82, 34),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (83, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (83, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "options.services.hadoop.yarnSite.default // {\n  \"yarn.resourcemanager.hostname\" = \"",
                   position: (84, 1),
                  },
                  Raw {
                   content: "$",
                   position: (85, 46),
                  },
                  Raw {
                   content: "{config.networking.hostName}\";\n}\n",
                   position: (85, 49),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (88, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Hadoop yarn-site.xml definition\n<link xlink:href=\"https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-common/yarn-default.xml\"/>\n",
                 position: (89, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (68, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "httpfsSite",
            position: (94, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (94, 18),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (95, 7),
                },
               ],
              },
              Map {
               bindings: [],
               recursive: false,
               position: (95, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (96, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (96, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "attrsOf",
                   position: (96, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (96, 28),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "anything",
                    position: (96, 34),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (97, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (97, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "{\n  \"hadoop.http.max.threads\" = 500;\n}\n",
                   position: (98, 1),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (102, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Hadoop httpfs-site.xml definition\n<link xlink:href=\"https://hadoop.apache.org/docs/current/hadoop-hdfs-httpfs/httpfs-default.html\"/>\n",
                 position: (103, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (94, 27),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "log4jProperties",
            position: (108, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (108, 23),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (109, 7),
                },
               ],
              },
              String {
               parts: [
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (109, 20),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "package",
                     position: (109, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/lib/",
                 position: (109, 32),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (109, 39),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "package",
                     position: (109, 43),
                    },
                    Raw {
                     content: "untarDir",
                     position: (109, 51),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/etc/hadoop/log4j.properties",
                 position: (109, 60),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (110, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (110, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "\"",
                   position: (111, 1),
                  },
                  Raw {
                   content: "$",
                   position: (111, 10),
                  },
                  Raw {
                   content: "{config.",
                   position: (111, 13),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (111, 23),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (111, 27),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "}/lib/",
                   position: (111, 35),
                  },
                  Raw {
                   content: "$",
                   position: (111, 41),
                  },
                  Raw {
                   content: "{config.",
                   position: (111, 44),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (111, 54),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (111, 58),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: ".untarDir}/etc/hadoop/log4j.properties\"\n",
                   position: (111, 66),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (113, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (113, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "path",
                  position: (113, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (114, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (114, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "\"",
                   position: (115, 1),
                  },
                  Raw {
                   content: "$",
                   position: (115, 10),
                  },
                  Raw {
                   content: "{pkgs.hadoop}/lib/",
                   position: (115, 13),
                  },
                  Raw {
                   content: "$",
                   position: (115, 31),
                  },
                  Raw {
                   content: "{pkgs.hadoop.untarDir}/etc/hadoop/log4j.properties\";\n",
                   position: (115, 34),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (117, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "log4j.properties file added to HADOOP_CONF_DIR",
                 position: (117, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (108, 32),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "containerExecutorCfg",
            position: (120, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (120, 28),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (121, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "yarn.nodemanager.linux-container-executor.group",
                       position: (123, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "hadoop",
                    position: (123, 60),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "min.user.id",
                       position: (124, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 Int {
                  value: 1000,
                  position: (124, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "feature.terminal.enabled",
                       position: (125, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 Int {
                  value: 1,
                  position: (125, 36),
                 },
                ),
               ],
               recursive: false,
               position: (121, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (127, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (127, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "attrsOf",
                   position: (127, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (127, 28),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "anything",
                    position: (127, 34),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (128, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (128, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "options.services.hadoop.containerExecutorCfg.default // {\n  \"feature.terminal.enabled\" = 0;\n}\n",
                   position: (129, 1),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (133, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Yarn container-executor.cfg definition\n<link xlink:href=\"https://hadoop.apache.org/docs/r2.7.2/hadoop-yarn/hadoop-yarn-site/SecureContainer.html\"/>\n",
                 position: (134, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (120, 37),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "extraConfDirs",
            position: (139, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (139, 21),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (140, 7),
                },
               ],
              },
              List {
               elements: [],
               position: (140, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (141, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (141, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "listOf",
                   position: (141, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (141, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "path",
                    position: (141, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (142, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (142, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "[\n  ./extraHDFSConfs\n  ./extraYARNConfs\n]\n",
                   position: (143, 1),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (148, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Directories containing additional config files to be added to HADOOP_CONF_DIR",
                 position: (148, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (139, 30),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "package",
            position: (151, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (151, 15),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (152, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (152, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (152, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (153, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (153, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "hadoop",
                  position: (153, 22),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (154, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (154, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "pkgs.hadoop",
                   position: (154, 40),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (155, 7),
                },
               ],
              },
              String {
               parts: [],
              },
             ),
            ],
            recursive: false,
            position: (151, 24),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (10, 29),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (160, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkMerge",
        position: (160, 12),
       },
       arguments: [
        List {
         elements: [
          FunctionApplication {
           function: Variable {
            identifier: "mkIf",
            position: (161, 6),
           },
           arguments: [
            BinaryOperation {
             operator: LogicalOr,
             operands: [
              BinaryOperation {
               operator: LogicalOr,
               operands: [
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "builtins",
                   position: (161, 12),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "hasAttr",
                     position: (161, 21),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "yarn",
                     position: (161, 30),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "config",
                    position: (161, 36),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "users",
                      position: (161, 43),
                     },
                     Raw {
                      content: "users",
                      position: (161, 49),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "builtins",
                   position: (162, 12),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "hasAttr",
                     position: (162, 21),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "hdfs",
                     position: (162, 30),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "config",
                    position: (162, 36),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "users",
                      position: (162, 43),
                     },
                     Raw {
                      content: "users",
                      position: (162, 49),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               ],
               position: (161, 55),
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "builtins",
                 position: (163, 12),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "hasAttr",
                   position: (163, 21),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "httpfs",
                   position: (163, 30),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (163, 38),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "users",
                    position: (163, 45),
                   },
                   Raw {
                    content: "users",
                    position: (163, 51),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ],
             position: (162, 55),
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "users",
                  position: (164, 7),
                 },
                 Raw {
                  content: "groups",
                  position: (164, 13),
                 },
                 Raw {
                  content: "hadoop",
                  position: (164, 20),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "gid",
                     position: (165, 9),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "config",
                    position: (165, 15),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "ids",
                      position: (165, 22),
                     },
                     Raw {
                      content: "gids",
                      position: (165, 26),
                     },
                     Raw {
                      content: "hadoop",
                      position: (165, 31),
                     },
                    ],
                   },
                   default: None,
                  },
                 ),
                ],
                recursive: false,
                position: (164, 29),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "environment",
                  position: (167, 7),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "systemPackages",
                     position: (168, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (168, 28),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (168, 32),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (168, 26),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "etc",
                     position: (169, 9),
                    },
                    Expression {
                     expression: String {
                      parts: [
                       Raw {
                        content: "hadoop-conf",
                        position: (169, 14),
                       },
                      ],
                     },
                    },
                    Raw {
                     content: "source",
                     position: (169, 27),
                    },
                   ],
                  },
                  LetIn {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "hadoopConf",
                        position: (170, 11),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Expression {
                        expression: FunctionApplication {
                         function: Variable {
                          identifier: "import",
                          position: (170, 27),
                         },
                         arguments: [
                          Path {
                           parts: [
                            Raw {
                             content: "./conf.nix",
                             position: (170, 34),
                            },
                           ],
                          },
                          Map {
                           bindings: [
                            Inherit(
                             None,
                             [
                              Raw {
                               content: "cfg",
                               position: (170, 55),
                              },
                              Raw {
                               content: "pkgs",
                               position: (170, 59),
                              },
                              Raw {
                               content: "lib",
                               position: (170, 64),
                              },
                             ],
                            ),
                           ],
                           recursive: false,
                           position: (170, 45),
                          },
                         ],
                        },
                       },
                       Raw {
                        content: "/",
                        position: (170, 71),
                       },
                      ],
                     },
                    ),
                   ],
                   target: String {
                    parts: [
                     Expression {
                      expression: Variable {
                       identifier: "hadoopConf",
                       position: (171, 15),
                      },
                     },
                    ],
                   },
                   position: (169, 36),
                  },
                 ),
                ],
                recursive: false,
                position: (167, 21),
               },
              ),
             ],
             recursive: false,
             position: (163, 58),
            },
           ],
          },
         ],
         position: (160, 20),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (7, 1),
   },
   position: (6, 1),
  },
  position: (2, 1),
 },
 position: (1, 1),
}