---
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: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "programs",
         position: (6, 16),
        },
        Raw {
         content: "weylus",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (9, 3),
        },
        Raw {
         content: "programs",
         position: (9, 11),
        },
        Raw {
         content: "weylus",
         position: (9, 20),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "types",
        position: (9, 34),
       },
       target: Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "enable",
             position: (10, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkEnableOption",
            position: (10, 14),
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: "weylus",
               position: (10, 30),
              },
             ],
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "openFirewall",
             position: (12, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (12, 20),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (13, 7),
                 },
                ],
               },
               Variable {
                identifier: "bool",
                position: (13, 14),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (14, 7),
                 },
                ],
               },
               Variable {
                identifier: "false",
                position: (14, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (15, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Open ports needed for the functionality of the program.\n",
                  position: (16, 1),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (12, 29),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "users",
             position: (20, 6),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (20, 14),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (21, 7),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "listOf",
                 position: (21, 14),
                },
                arguments: [
                 Variable {
                  identifier: "str",
                  position: (21, 21),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (22, 7),
                 },
                ],
               },
               List {
                elements: [],
                position: (22, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (23, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "To enable stylus and multi-touch support, the user you're going to use must be added to this list.\nThese users can synthesize input events system-wide, even when another user is logged in - untrusted users should not be added.\n",
                  position: (24, 1),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (20, 23),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "package",
             position: (29, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (29, 15),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (30, 7),
                 },
                ],
               },
               Variable {
                identifier: "package",
                position: (30, 14),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (31, 7),
                 },
                ],
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (31, 17),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "weylus",
                   position: (31, 22),
                  },
                 ],
                },
                default: None,
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "defaultText",
                  position: (32, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "pkgs.weylus",
                  position: (32, 22),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (33, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Weylus package to install.",
                  position: (33, 22),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (29, 24),
            },
           ],
          },
         ),
        ],
        recursive: false,
        position: (9, 41),
       },
       position: (9, 29),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (36, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (36, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (36, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (36, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "networking",
              position: (37, 5),
             },
             Raw {
              content: "firewall",
              position: (37, 16),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (37, 27),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (37, 32),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "openFirewall",
                 position: (37, 36),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "allowedTCPPorts",
                   position: (38, 7),
                  },
                 ],
                },
                List {
                 elements: [
                  Int {
                   value: 1701,
                   position: (38, 27),
                  },
                  Int {
                   value: 9001,
                   position: (38, 32),
                  },
                 ],
                 position: (38, 25),
                },
               ),
              ],
              recursive: false,
              position: (37, 49),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "hardware",
              position: (41, 5),
             },
             Raw {
              content: "uinput",
              position: (41, 14),
             },
             Raw {
              content: "enable",
              position: (41, 21),
             },
            ],
           },
           Variable {
            identifier: "true",
            position: (41, 30),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (43, 5),
             },
             Raw {
              content: "groups",
              position: (43, 11),
             },
             Raw {
              content: "uinput",
              position: (43, 18),
             },
             Raw {
              content: "members",
              position: (43, 25),
             },
            ],
           },
           PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (43, 35),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "users",
               position: (43, 39),
              },
             ],
            },
            default: None,
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (45, 5),
             },
             Raw {
              content: "systemPackages",
              position: (45, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (45, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "package",
                 position: (45, 40),
                },
               ],
              },
              default: None,
             },
            ],
            position: (45, 34),
           },
          ),
         ],
         recursive: false,
         position: (36, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (8, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}