---
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, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (7, 16),
        },
        Raw {
         content: "novacomd",
         position: (7, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (11, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (12, 5),
           },
           Raw {
            content: "novacomd",
            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: "Novacom service for connecting to WebOS devices",
                 position: (13, 32),
                },
               ],
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (12, 25),
         },
        ),
       ],
       recursive: false,
       position: (11, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (17, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (17, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (17, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (17, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (18, 5),
             },
             Raw {
              content: "systemPackages",
              position: (18, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (18, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "webos",
                 position: (18, 41),
                },
                Raw {
                 content: "novacom",
                 position: (18, 47),
                },
               ],
              },
              default: None,
             },
            ],
            position: (18, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (20, 5),
             },
             Raw {
              content: "services",
              position: (20, 13),
             },
             Raw {
              content: "novacomd",
              position: (20, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (21, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Novacom WebOS daemon",
                 position: (21, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (22, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (22, 21),
                  },
                 ],
                },
               ],
               position: (22, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (24, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (25, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (25, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "webos",
                        position: (25, 29),
                       },
                       Raw {
                        content: "novacomd",
                        position: (25, 35),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/sbin/novacomd",
                    position: (25, 44),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (24, 23),
              },
             ),
            ],
            recursive: false,
            position: (20, 33),
           },
          ),
         ],
         recursive: false,
         position: (17, 28),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (30, 3),
        },
        Raw {
         content: "maintainers",
         position: (30, 8),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "maintainers",
        position: (30, 27),
       },
       target: List {
        elements: [
         Variable {
          identifier: "dtzWill",
          position: (30, 42),
         },
        ],
        position: (30, 40),
       },
       position: (30, 22),
      },
     ),
    ],
    recursive: false,
    position: (9, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}