---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    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: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "programs",
         position: (7, 16),
        },
        Raw {
         content: "_1password-gui",
         position: (7, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (11, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "programs",
            position: (12, 5),
           },
           Raw {
            content: "_1password-gui",
            position: (12, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (13, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (13, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "the 1Password GUI application",
                },
               ],
               position: (13, 31),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "gid",
               position: (15, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (15, 13),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (16, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (16, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "addCheck",
                      position: (16, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (16, 31),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "int",
                       position: (16, 37),
                      },
                     ],
                    },
                    default: None,
                   },
                   Function {
                    argument: Some(
                     "x",
                    ),
                    arguments: FunctionArguments {
                     arguments: [],
                     ellipsis: false,
                    },
                    definition: BinaryOperation {
                     operator: GreaterThanOrEqualTo,
                     operands: [
                      Variable {
                       identifier: "x",
                       position: (16, 45),
                      },
                      Int {
                       value: 1000,
                       position: (16, 50),
                      },
                     ],
                     position: (16, 47),
                    },
                    position: (16, 42),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (17, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (17, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "5000",
                     },
                    ],
                    position: (17, 37),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (18, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The gid to assign to the onepassword group, which is needed for browser integration.\nIt must be 1000 or greater.\n",
                   },
                  ],
                  position: (18, 23),
                 },
                ),
               ],
               recursive: false,
               position: (15, 22),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "polkitPolicyOwners",
               position: (24, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (24, 28),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (25, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (25, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listOf",
                      position: (25, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (25, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (25, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (26, 9),
                   },
                  ],
                 },
                 List {
                  elements: [],
                  position: (26, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (27, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (27, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "[\"user1\" \"user2\" \"user3\"]",
                     },
                    ],
                    position: (27, 37),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (28, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "A list of users who should be able to integrate 1Password with polkit-based authentication mechanisms.\n",
                   },
                  ],
                  position: (28, 23),
                 },
                ),
               ],
               recursive: false,
               position: (24, 37),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "package",
               position: (33, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkPackageOption",
              position: (33, 17),
             },
             arguments: [
              Variable {
               identifier: "pkgs",
               position: (33, 33),
              },
              String {
               parts: [
                Raw {
                 content: "1Password GUI",
                },
               ],
               position: (33, 38),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (34, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "_1password-gui",
                     },
                    ],
                    position: (34, 21),
                   },
                  ],
                  position: (34, 19),
                 },
                ),
               ],
               recursive: false,
               position: (33, 54),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (12, 31),
         },
        ),
       ],
       recursive: false,
       position: (11, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (39, 3),
        },
       ],
      },
      LetIn {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "package",
            position: (41, 7),
           },
          ],
         },
         FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (41, 17),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "package",
              position: (41, 21),
             },
             Raw {
              content: "override",
              position: (41, 29),
             },
            ],
           },
           default: None,
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "polkitPolicyOwners",
                 position: (42, 9),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (42, 30),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "polkitPolicyOwners",
                  position: (42, 34),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (41, 38),
           },
          ],
         },
        ),
       ],
       target: FunctionApplication {
        function: Variable {
         identifier: "mkIf",
         position: (45, 5),
        },
        arguments: [
         PropertyAccess {
          expression: Variable {
           identifier: "cfg",
           position: (45, 10),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "enable",
             position: (45, 14),
            },
           ],
          },
          default: None,
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (46, 7),
              },
              Raw {
               content: "systemPackages",
               position: (46, 19),
              },
             ],
            },
            List {
             elements: [
              Variable {
               identifier: "package",
               position: (46, 38),
              },
             ],
             position: (46, 36),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "users",
               position: (47, 7),
              },
              Raw {
               content: "groups",
               position: (47, 13),
              },
              Raw {
               content: "onepassword",
               position: (47, 20),
              },
              Raw {
               content: "gid",
               position: (47, 32),
              },
             ],
            },
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (47, 38),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "gid",
                position: (47, 42),
               },
              ],
             },
             default: None,
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "security",
               position: (49, 7),
              },
              Raw {
               content: "wrappers",
               position: (49, 16),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: __StringParts(
                   [
                    Raw {
                     content: "1Password-BrowserSupport",
                    },
                   ],
                  ),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "source",
                     position: (51, 11),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Expression {
                     expression: Variable {
                      identifier: "package",
                      position: (51, 23),
                     },
                    },
                    Raw {
                     content: "/share/1password/1Password-BrowserSupport",
                    },
                   ],
                   position: (51, 20),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "owner",
                     position: (52, 11),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "root",
                    },
                   ],
                   position: (52, 19),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "group",
                     position: (53, 11),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "onepassword",
                    },
                   ],
                   position: (53, 19),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "setuid",
                     position: (54, 11),
                    },
                   ],
                  },
                  Variable {
                   identifier: "false",
                   position: (54, 20),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "setgid",
                     position: (55, 11),
                    },
                   ],
                  },
                  Variable {
                   identifier: "true",
                   position: (55, 20),
                  },
                 ),
                ],
                recursive: false,
                position: (50, 38),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: __StringParts(
                   [
                    Raw {
                     content: "1Password-KeyringHelper",
                    },
                   ],
                  ),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "source",
                     position: (59, 11),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Expression {
                     expression: Variable {
                      identifier: "package",
                      position: (59, 23),
                     },
                    },
                    Raw {
                     content: "/share/1password/1Password-KeyringHelper",
                    },
                   ],
                   position: (59, 20),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "owner",
                     position: (60, 11),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "root",
                    },
                   ],
                   position: (60, 19),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "group",
                     position: (61, 11),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "onepassword",
                    },
                   ],
                   position: (61, 19),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "setuid",
                     position: (62, 11),
                    },
                   ],
                  },
                  Variable {
                   identifier: "true",
                   position: (62, 20),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "setgid",
                     position: (63, 11),
                    },
                   ],
                  },
                  Variable {
                   identifier: "true",
                   position: (63, 20),
                  },
                 ),
                ],
                recursive: false,
                position: (58, 37),
               },
              ),
             ],
             recursive: false,
             position: (49, 27),
            },
           ),
          ],
          recursive: false,
          position: (45, 21),
         },
        ],
       },
       position: (40, 5),
      },
     ),
    ],
    recursive: false,
    position: (10, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}