---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "config",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    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: "services",
         position: (6, 16),
        },
        Raw {
         content: "grafana-image-renderer",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "format",
        position: (8, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (8, 12),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "formats",
          position: (8, 17),
         },
         Raw {
          content: "json",
          position: (8, 25),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [],
        recursive: false,
        position: (8, 30),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configFile",
        position: (10, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "format",
        position: (10, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "generate",
          position: (10, 23),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "grafana-image-renderer-config.json",
          position: (10, 33),
         },
        ],
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (10, 69),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "settings",
           position: (10, 73),
          },
         ],
        },
        default: None,
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (12, 3),
        },
        Raw {
         content: "services",
         position: (12, 11),
        },
        Raw {
         content: "grafana-image-renderer",
         position: (12, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (13, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (13, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "grafana-image-renderer",
              position: (13, 30),
             },
            ],
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "chromium",
            position: (15, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (15, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (16, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (16, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (16, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (17, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The chromium to use for image rendering.\n",
                 position: (18, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (15, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "verbose",
            position: (22, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (22, 15),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "verbosity for the service",
              position: (22, 31),
             },
            ],
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "provisionGrafana",
            position: (24, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (24, 24),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "Grafana configuration for grafana-image-renderer",
              position: (24, 40),
             },
            ],
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "settings",
            position: (26, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (26, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (27, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (27, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "submodule",
                   position: (27, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "freeformType",
                      position: (28, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "format",
                     position: (28, 24),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (28, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "options",
                      position: (30, 9),
                     },
                    ],
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "service",
                         position: (31, 11),
                        },
                       ],
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "port",
                            position: (32, 13),
                           },
                          ],
                         },
                         FunctionApplication {
                          function: Variable {
                           identifier: "mkOption",
                           position: (32, 20),
                          },
                          arguments: [
                           Map {
                            bindings: [
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "type",
                                 position: (33, 15),
                                },
                               ],
                              },
                              PropertyAccess {
                               expression: Variable {
                                identifier: "types",
                                position: (33, 22),
                               },
                               attribute_path: AttributePath {
                                attributes: [
                                 Raw {
                                  content: "port",
                                  position: (33, 28),
                                 },
                                ],
                               },
                               default: None,
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "default",
                                 position: (34, 15),
                                },
                               ],
                              },
                              Int {
                               value: 8081,
                               position: (34, 25),
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "description",
                                 position: (35, 15),
                                },
                               ],
                              },
                              String {
                               parts: [
                                Raw {
                                 content: "The TCP port to use for the rendering server.\n",
                                 position: (36, 1),
                                },
                               ],
                              },
                             ),
                            ],
                            recursive: false,
                            position: (32, 29),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "logging",
                            position: (39, 13),
                           },
                           Raw {
                            content: "level",
                            position: (39, 21),
                           },
                          ],
                         },
                         FunctionApplication {
                          function: Variable {
                           identifier: "mkOption",
                           position: (39, 29),
                          },
                          arguments: [
                           Map {
                            bindings: [
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "type",
                                 position: (40, 15),
                                },
                               ],
                              },
                              FunctionApplication {
                               function: PropertyAccess {
                                expression: Variable {
                                 identifier: "types",
                                 position: (40, 22),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "enum",
                                   position: (40, 28),
                                  },
                                 ],
                                },
                                default: None,
                               },
                               arguments: [
                                List {
                                 elements: [
                                  String {
                                   parts: [
                                    Raw {
                                     content: "error",
                                     position: (40, 36),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "warning",
                                     position: (40, 44),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "info",
                                     position: (40, 54),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "debug",
                                     position: (40, 61),
                                    },
                                   ],
                                  },
                                 ],
                                 position: (40, 33),
                                },
                               ],
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "default",
                                 position: (41, 15),
                                },
                               ],
                              },
                              String {
                               parts: [
                                Raw {
                                 content: "info",
                                 position: (41, 26),
                                },
                               ],
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "description",
                                 position: (42, 15),
                                },
                               ],
                              },
                              String {
                               parts: [
                                Raw {
                                 content: "The log-level of the <filename>grafana-image-renderer.service</filename>-unit.\n",
                                 position: (43, 1),
                                },
                               ],
                              },
                             ),
                            ],
                            recursive: false,
                            position: (39, 38),
                           },
                          ],
                         },
                        ),
                       ],
                       recursive: false,
                       position: (31, 21),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "rendering",
                         position: (47, 11),
                        },
                       ],
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "width",
                            position: (48, 13),
                           },
                          ],
                         },
                         FunctionApplication {
                          function: Variable {
                           identifier: "mkOption",
                           position: (48, 21),
                          },
                          arguments: [
                           Map {
                            bindings: [
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "default",
                                 position: (49, 15),
                                },
                               ],
                              },
                              Int {
                               value: 1000,
                               position: (49, 25),
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "type",
                                 position: (50, 15),
                                },
                               ],
                              },
                              PropertyAccess {
                               expression: Variable {
                                identifier: "types",
                                position: (50, 22),
                               },
                               attribute_path: AttributePath {
                                attributes: [
                                 Raw {
                                  content: "ints",
                                  position: (50, 28),
                                 },
                                 Raw {
                                  content: "positive",
                                  position: (50, 33),
                                 },
                                ],
                               },
                               default: None,
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "description",
                                 position: (51, 15),
                                },
                               ],
                              },
                              String {
                               parts: [
                                Raw {
                                 content: "Width of the PNG used to display the alerting graph.\n",
                                 position: (52, 1),
                                },
                               ],
                              },
                             ),
                            ],
                            recursive: false,
                            position: (48, 30),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "height",
                            position: (55, 13),
                           },
                          ],
                         },
                         FunctionApplication {
                          function: Variable {
                           identifier: "mkOption",
                           position: (55, 22),
                          },
                          arguments: [
                           Map {
                            bindings: [
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "default",
                                 position: (56, 15),
                                },
                               ],
                              },
                              Int {
                               value: 500,
                               position: (56, 25),
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "type",
                                 position: (57, 15),
                                },
                               ],
                              },
                              PropertyAccess {
                               expression: Variable {
                                identifier: "types",
                                position: (57, 22),
                               },
                               attribute_path: AttributePath {
                                attributes: [
                                 Raw {
                                  content: "ints",
                                  position: (57, 28),
                                 },
                                 Raw {
                                  content: "positive",
                                  position: (57, 33),
                                 },
                                ],
                               },
                               default: None,
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "description",
                                 position: (58, 15),
                                },
                               ],
                              },
                              String {
                               parts: [
                                Raw {
                                 content: "Height of the PNG used to display the alerting graph.\n",
                                 position: (59, 1),
                                },
                               ],
                              },
                             ),
                            ],
                            recursive: false,
                            position: (55, 31),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "mode",
                            position: (62, 13),
                           },
                          ],
                         },
                         FunctionApplication {
                          function: Variable {
                           identifier: "mkOption",
                           position: (62, 20),
                          },
                          arguments: [
                           Map {
                            bindings: [
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "default",
                                 position: (63, 15),
                                },
                               ],
                              },
                              String {
                               parts: [
                                Raw {
                                 content: "default",
                                 position: (63, 26),
                                },
                               ],
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "type",
                                 position: (64, 15),
                                },
                               ],
                              },
                              FunctionApplication {
                               function: PropertyAccess {
                                expression: Variable {
                                 identifier: "types",
                                 position: (64, 22),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "enum",
                                   position: (64, 28),
                                  },
                                 ],
                                },
                                default: None,
                               },
                               arguments: [
                                List {
                                 elements: [
                                  String {
                                   parts: [
                                    Raw {
                                     content: "default",
                                     position: (64, 36),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "reusable",
                                     position: (64, 46),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "clustered",
                                     position: (64, 57),
                                    },
                                   ],
                                  },
                                 ],
                                 position: (64, 33),
                                },
                               ],
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "description",
                                 position: (65, 15),
                                },
                               ],
                              },
                              String {
                               parts: [
                                Raw {
                                 content: "Rendering mode of <package>grafana-image-renderer</package>:\n<itemizedlist>\n<listitem><para><literal>default:</literal> Creates on browser-instance\n  per rendering request.</para></listitem>\n<listitem><para><literal>reusable:</literal> One browser instance\n  will be started and reused for each rendering request.</para></listitem>\n<listitem><para><literal>clustered:</literal> allows to precisely\n  configure how many browser-instances are supposed to be used. The values\n  for that mode can be declared in <literal>rendering.clustering</literal>.\n  </para></listitem>\n</itemizedlist>\n",
                                 position: (66, 1),
                                },
                               ],
                              },
                             ),
                            ],
                            recursive: false,
                            position: (62, 29),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "args",
                            position: (79, 13),
                           },
                          ],
                         },
                         FunctionApplication {
                          function: Variable {
                           identifier: "mkOption",
                           position: (79, 20),
                          },
                          arguments: [
                           Map {
                            bindings: [
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "type",
                                 position: (80, 15),
                                },
                               ],
                              },
                              FunctionApplication {
                               function: PropertyAccess {
                                expression: Variable {
                                 identifier: "types",
                                 position: (80, 22),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "listOf",
                                   position: (80, 28),
                                  },
                                 ],
                                },
                                default: None,
                               },
                               arguments: [
                                PropertyAccess {
                                 expression: Variable {
                                  identifier: "types",
                                  position: (80, 35),
                                 },
                                 attribute_path: AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "str",
                                    position: (80, 41),
                                   },
                                  ],
                                 },
                                 default: None,
                                },
                               ],
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "default",
                                 position: (81, 15),
                                },
                               ],
                              },
                              List {
                               elements: [
                                String {
                                 parts: [
                                  Raw {
                                   content: "--no-sandbox",
                                   position: (81, 28),
                                  },
                                 ],
                                },
                               ],
                               position: (81, 25),
                              },
                             ),
                             KeyValue(
                              AttributePath {
                               attributes: [
                                Raw {
                                 content: "description",
                                 position: (82, 15),
                                },
                               ],
                              },
                              String {
                               parts: [
                                Raw {
                                 content: "List of CLI flags passed to <package>chromium</package>.\n",
                                 position: (83, 1),
                                },
                               ],
                              },
                             ),
                            ],
                            recursive: false,
                            position: (79, 29),
                           },
                          ],
                         },
                        ),
                       ],
                       recursive: false,
                       position: (47, 23),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (30, 19),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (27, 30),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (90, 7),
                },
               ],
              },
              Map {
               bindings: [],
               recursive: false,
               position: (90, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (92, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Configuration attributes for <package>grafana-image-renderer</package>.\n\nSee <link xlink:href=\"https://github.com/grafana/grafana-image-renderer/blob/ce1f81438e5f69c7fd7c73ce08bab624c4c92e25/default.json\" />\nfor supported values.\n",
                 position: (93, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (26, 25),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (12, 45),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (101, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (101, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (101, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (101, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "assertions",
              position: (102, 5),
             },
            ],
           },
           List {
            elements: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "assertion",
                   position: (103, 9),
                  },
                 ],
                },
                BinaryOperation {
                 operator: Implication,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (103, 21),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "provisionGrafana",
                      position: (103, 25),
                     },
                    ],
                   },
                   default: None,
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "config",
                    position: (103, 45),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "services",
                      position: (103, 52),
                     },
                     Raw {
                      content: "grafana",
                      position: (103, 61),
                     },
                     Raw {
                      content: "enable",
                      position: (103, 69),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                 position: (103, 42),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "message",
                   position: (104, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "To provision a Grafana instance to use grafana-image-renderer,\n`services.grafana.enable` must be set to `true`!\n",
                   position: (105, 1),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (103, 7),
             },
            ],
            position: (102, 18),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (111, 5),
             },
             Raw {
              content: "grafana",
              position: (111, 14),
             },
             Raw {
              content: "extraOptions",
              position: (111, 22),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (111, 37),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (111, 42),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "provisionGrafana",
                 position: (111, 46),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "RENDERING_SERVER_URL",
                   position: (112, 7),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "http://localhost:",
                   position: (112, 31),
                  },
                  Expression {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "toString",
                     position: (112, 50),
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (112, 59),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "settings",
                         position: (112, 63),
                        },
                        Raw {
                         content: "service",
                         position: (112, 72),
                        },
                        Raw {
                         content: "port",
                         position: (112, 80),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                  },
                  Raw {
                   content: "/render",
                   position: (112, 85),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "RENDERING_CALLBACK_URL",
                   position: (113, 7),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "http://localhost:",
                   position: (113, 33),
                  },
                  Expression {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "toString",
                     position: (113, 52),
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "config",
                       position: (113, 61),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "services",
                         position: (113, 68),
                        },
                        Raw {
                         content: "grafana",
                         position: (113, 77),
                        },
                        Raw {
                         content: "port",
                         position: (113, 85),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (111, 63),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (116, 5),
             },
             Raw {
              content: "grafana-image-renderer",
              position: (116, 14),
             },
             Raw {
              content: "chromium",
              position: (116, 37),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkDefault",
             position: (116, 48),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (116, 58),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "chromium",
                 position: (116, 63),
                },
               ],
              },
              default: None,
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (118, 5),
             },
             Raw {
              content: "grafana-image-renderer",
              position: (118, 14),
             },
             Raw {
              content: "settings",
              position: (118, 37),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "rendering",
                 position: (119, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "mapAttrs",
                position: (119, 19),
               },
               arguments: [
                FunctionApplication {
                 function: Variable {
                  identifier: "const",
                  position: (119, 29),
                 },
                 arguments: [
                  Variable {
                   identifier: "mkDefault",
                   position: (119, 35),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "chromeBin",
                      position: (120, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (120, 24),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "chromium",
                          position: (120, 28),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/chromium",
                      position: (120, 37),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "verboseLogging",
                      position: (121, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (121, 26),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "verbose",
                       position: (121, 30),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "timezone",
                      position: (122, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (122, 20),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "time",
                       position: (122, 27),
                      },
                      Raw {
                       content: "timeZone",
                       position: (122, 32),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                 ],
                 recursive: false,
                 position: (119, 46),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "service",
                 position: (125, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "logging",
                    position: (126, 9),
                   },
                   Raw {
                    content: "level",
                    position: (126, 17),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (126, 25),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (126, 30),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "verbose",
                       position: (126, 34),
                      },
                     ],
                    },
                    default: None,
                   },
                   FunctionApplication {
                    function: Variable {
                     identifier: "mkDefault",
                     position: (126, 43),
                    },
                    arguments: [
                     String {
                      parts: [
                       Raw {
                        content: "debug",
                        position: (126, 54),
                       },
                      ],
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "metrics",
                    position: (127, 9),
                   },
                   Raw {
                    content: "enabled",
                    position: (127, 17),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (127, 27),
                  },
                  arguments: [
                   Variable {
                    identifier: "false",
                    position: (127, 37),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (125, 17),
              },
             ),
            ],
            recursive: false,
            position: (118, 48),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (131, 5),
             },
             Raw {
              content: "services",
              position: (131, 13),
             },
             Raw {
              content: "grafana-image-renderer",
              position: (131, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (132, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (132, 21),
                  },
                 ],
                },
               ],
               position: (132, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (133, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (133, 18),
                  },
                 ],
                },
               ],
               position: (133, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (134, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: " A Grafana backend plugin that handles rendering of panels & dashboards to PNGs using headless browser (Chromium/Chrome)",
                 position: (134, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "environment",
                 position: (136, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD",
                    position: (137, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "true",
                    position: (137, 45),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (136, 21),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (140, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "DynamicUser",
                    position: (141, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (141, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "PrivateTmp",
                    position: (142, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (142, 22),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (143, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (143, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "grafana-image-renderer",
                        position: (143, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/grafana-image-renderer server --config=",
                    position: (143, 52),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "configFile",
                     position: (143, 98),
                    },
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Restart",
                    position: (144, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "always",
                    position: (144, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (140, 23),
              },
             ),
            ],
            recursive: false,
            position: (131, 47),
           },
          ),
         ],
         recursive: false,
         position: (101, 28),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (149, 3),
        },
        Raw {
         content: "maintainers",
         position: (149, 8),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "maintainers",
        position: (149, 27),
       },
       target: List {
        elements: [
         Variable {
          identifier: "ma27",
          position: (149, 42),
         },
        ],
        position: (149, 40),
       },
       position: (149, 22),
      },
     ),
    ],
    recursive: false,
    position: (11, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}