---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (5, 5),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (5, 11),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "programs",
         position: (5, 18),
        },
        Raw {
         content: "bandwhich",
         position: (5, 27),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (7, 3),
        },
        Raw {
         content: "maintainers",
         position: (7, 8),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "maintainers",
        position: (7, 27),
       },
       target: List {
        elements: [
         Variable {
          identifier: "Br1ght0ne",
          position: (7, 42),
         },
        ],
        position: (7, 40),
       },
       position: (7, 22),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (9, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "programs",
            position: (10, 5),
           },
           Raw {
            content: "bandwhich",
            position: (10, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (11, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (11, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (12, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (12, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (12, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (13, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (13, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (14, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to add bandwhich to the global environment and configure a\nsetcap wrapper for it.\n",
                    position: (15, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (11, 25),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (10, 26),
         },
        ),
       ],
       recursive: false,
       position: (9, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (22, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (22, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (22, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (22, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (23, 5),
             },
             Raw {
              content: "systemPackages",
              position: (23, 17),
             },
            ],
           },
           With {
            expression: Variable {
             identifier: "pkgs",
             position: (23, 39),
            },
            target: List {
             elements: [
              Variable {
               identifier: "bandwhich",
               position: (23, 47),
              },
             ],
             position: (23, 45),
            },
            position: (23, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "security",
              position: (24, 5),
             },
             Raw {
              content: "wrappers",
              position: (24, 14),
             },
             Raw {
              content: "bandwhich",
              position: (24, 23),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "owner",
                 position: (25, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "root",
                 position: (25, 16),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "group",
                 position: (26, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "root",
                 position: (26, 16),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "capabilities",
                 position: (27, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "cap_net_raw,cap_net_admin+ep",
                 position: (27, 23),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "source",
                 position: (28, 7),
                },
               ],
              },
              String {
               parts: [
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (28, 19),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bandwhich",
                     position: (28, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/bandwhich",
                 position: (28, 34),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (24, 35),
           },
          ),
         ],
         recursive: false,
         position: (22, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (6, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}