---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "programs",
         position: (6, 16),
        },
        Raw {
         content: "wireshark",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "wireshark",
        position: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "cfg",
       position: (7, 15),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "package",
         position: (7, 19),
        },
       ],
      },
      default: None,
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (9, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "programs",
            position: (10, 5),
           },
           Raw {
            content: "wireshark",
            position: (10, 14),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (11, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (11, 16),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (12, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (12, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "bool",
                     position: (12, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (13, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "false",
                  position: (13, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (14, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Whether to add Wireshark to the global environment and configure a\nsetcap wrapper for 'dumpcap' for users in the 'wireshark' group.\n",
                    position: (15, 1),
                   },
                  ],
                  position: (14, 23),
                 },
                },
               ],
               recursive: false,
               position: (11, 25),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "package",
               position: (19, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (19, 17),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (20, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (20, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "package",
                     position: (20, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (21, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (21, 19),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "wireshark-cli",
                     position: (21, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "defaultText",
                    position: (22, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (22, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "pkgs.wireshark-cli",
                      position: (22, 42),
                     },
                    ],
                    position: (22, 41),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (23, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Which Wireshark package to install in the global environment.\n",
                    position: (24, 1),
                   },
                  ],
                  position: (23, 23),
                 },
                },
               ],
               recursive: false,
               position: (19, 26),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (10, 26),
         },
        },
       ],
       recursive: false,
       position: (9, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (30, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (30, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (30, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (30, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (31, 5),
             },
             Raw {
              content: "systemPackages",
              position: (31, 17),
             },
            ],
           },
           to: List {
            elements: [
             Variable {
              identifier: "wireshark",
              position: (31, 36),
             },
            ],
            position: (31, 34),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (32, 5),
             },
             Raw {
              content: "groups",
              position: (32, 11),
             },
             Raw {
              content: "wireshark",
              position: (32, 18),
             },
            ],
           },
           to: Map {
            bindings: [],
            recursive: false,
            position: (32, 30),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "security",
              position: (34, 5),
             },
             Raw {
              content: "wrappers",
              position: (34, 14),
             },
             Raw {
              content: "dumpcap",
              position: (34, 23),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "source",
                 position: (35, 7),
                },
               ],
              },
              to: String {
               parts: [
                Interpolation {
                 expression: Variable {
                  identifier: "wireshark",
                  position: (35, 19),
                 },
                },
                Raw {
                 content: "/bin/dumpcap",
                 position: (35, 29),
                },
               ],
               position: (35, 16),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "capabilities",
                 position: (36, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "cap_net_raw+p",
                 position: (36, 23),
                },
               ],
               position: (36, 22),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "owner",
                 position: (37, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "root",
                 position: (37, 16),
                },
               ],
               position: (37, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "group",
                 position: (38, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "wireshark",
                 position: (38, 16),
                },
               ],
               position: (38, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "permissions",
                 position: (39, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "u+rx,g+x",
                 position: (39, 22),
                },
               ],
               position: (39, 21),
              },
             },
            ],
            recursive: false,
            position: (34, 33),
           },
          },
         ],
         recursive: false,
         position: (30, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (8, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}