---
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: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 10),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "programs",
         position: (7, 17),
        },
        Raw {
         content: "mosh",
         position: (7, 26),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (11, 3),
        },
        Raw {
         content: "programs",
         position: (11, 11),
        },
        Raw {
         content: "mosh",
         position: (11, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (12, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (12, 14),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (13, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether to enable mosh. Note, this will open ports in your firewall!\n",
                 position: (14, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (16, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (16, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (17, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (17, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "types",
                  position: (17, 18),
                 },
                 Raw {
                  content: "bool",
                  position: (17, 24),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (12, 23),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "withUtempter",
            position: (19, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (19, 20),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (20, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether to enable libutempter for mosh.\nThis is required so that mosh can write to /var/run/utmp (which can be queried with `who` to display currently connected user sessions).\nNote, this will add a guid wrapper for the group utmp!\n",
                 position: (21, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (25, 7),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (25, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (26, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (26, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "types",
                  position: (26, 18),
                 },
                 Raw {
                  content: "bool",
                  position: (26, 24),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (19, 29),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (11, 27),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (30, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (30, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (30, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (30, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (31, 5),
             },
             Raw {
              content: "systemPackages",
              position: (31, 17),
             },
            ],
           },
           With {
            expression: Variable {
             identifier: "pkgs",
             position: (31, 39),
            },
            target: List {
             elements: [
              Variable {
               identifier: "mosh",
               position: (31, 47),
              },
             ],
             position: (31, 45),
            },
            position: (31, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "networking",
              position: (32, 5),
             },
             Raw {
              content: "firewall",
              position: (32, 16),
             },
             Raw {
              content: "allowedUDPPortRanges",
              position: (32, 25),
             },
            ],
           },
           List {
            elements: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "from",
                   position: (32, 52),
                  },
                 ],
                },
                Int {
                 value: 60000,
                 position: (32, 59),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "to",
                   position: (32, 66),
                  },
                 ],
                },
                Int {
                 value: 61000,
                 position: (32, 71),
                },
               ),
              ],
              recursive: false,
              position: (32, 50),
             },
            ],
            position: (32, 48),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "security",
              position: (33, 5),
             },
             Raw {
              content: "wrappers",
              position: (33, 14),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (33, 25),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (33, 30),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "withUtempter",
                 position: (33, 34),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "utempter",
                   position: (34, 7),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "source",
                      position: (35, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (35, 21),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "libutempter",
                          position: (35, 26),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/lib/utempter/utempter",
                      position: (35, 38),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "owner",
                      position: (36, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "root",
                      position: (36, 18),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "group",
                      position: (37, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "utmp",
                      position: (37, 18),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "setuid",
                      position: (38, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "false",
                    position: (38, 18),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "setgid",
                      position: (39, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "true",
                    position: (39, 18),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (34, 18),
                },
               ),
              ],
              recursive: false,
              position: (33, 47),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (30, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (10, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}