---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "programs",
         position: (6, 16),
        },
        Raw {
         content: "zmap",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (8, 3),
        },
        Raw {
         content: "programs",
         position: (8, 11),
        },
        Raw {
         content: "zmap",
         position: (8, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (9, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (9, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "ZMap",
              position: (9, 30),
             },
            ],
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (8, 27),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (12, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (12, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (12, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (12, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (13, 5),
             },
             Raw {
              content: "systemPackages",
              position: (13, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (13, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "zmap",
                 position: (13, 41),
                },
               ],
              },
              default: None,
             },
            ],
            position: (13, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (15, 5),
             },
             Raw {
              content: "etc",
              position: (15, 17),
             },
             Expression {
              expression: String {
               parts: [
                Raw {
                 content: "zmap/blacklist.conf",
                 position: (15, 22),
                },
               ],
              },
             },
             Raw {
              content: "source",
              position: (15, 43),
             },
            ],
           },
           String {
            parts: [
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (15, 55),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "zmap",
                  position: (15, 60),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/etc/zmap/blacklist.conf",
              position: (15, 65),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (16, 5),
             },
             Raw {
              content: "etc",
              position: (16, 17),
             },
             Expression {
              expression: String {
               parts: [
                Raw {
                 content: "zmap/zmap.conf",
                 position: (16, 22),
                },
               ],
              },
             },
             Raw {
              content: "source",
              position: (16, 38),
             },
            ],
           },
           String {
            parts: [
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (16, 50),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "zmap",
                  position: (16, 55),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/etc/zmap.conf",
              position: (16, 60),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (12, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (7, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}