---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "longview",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "runDir",
        position: (8, 3),
       },
      ],
     },
     to: String {
      parts: [
       Raw {
        content: "/run/longview",
        position: (8, 13),
       },
      ],
      position: (8, 12),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "configsDir",
        position: (9, 3),
       },
      ],
     },
     to: String {
      parts: [
       Interpolation {
        expression: Variable {
         identifier: "runDir",
         position: (9, 19),
        },
       },
       Raw {
        content: "/longview.d",
        position: (9, 26),
       },
      ],
      position: (9, 16),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (12, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (14, 5),
           },
           Raw {
            content: "longview",
            position: (14, 14),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (16, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (16, 16),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (17, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (17, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "bool",
                     position: (17, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (18, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "false",
                  position: (18, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (19, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "If enabled, system metrics will be sent to Linode LongView.\n",
                    position: (20, 1),
                   },
                  ],
                  position: (19, 23),
                 },
                },
               ],
               recursive: false,
               position: (16, 25),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "apiKey",
               position: (24, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (24, 16),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (25, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (25, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (25, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (26, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (26, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (27, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "01234567-89AB-CDEF-0123456789ABCDEF",
                    position: (27, 20),
                   },
                  ],
                  position: (27, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (28, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Longview API key. To get this, look in Longview settings which\nare found at https://manager.linode.com/longview/.\n\nWarning: this secret is stored in the world-readable Nix store!\nUse <option>apiKeyFile</option> instead.\n",
                    position: (29, 1),
                   },
                  ],
                  position: (28, 23),
                 },
                },
               ],
               recursive: false,
               position: (24, 25),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "apiKeyFile",
               position: (37, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (37, 20),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (38, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (38, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "nullOr",
                      position: (38, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (38, 29),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "path",
                       position: (38, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (39, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "null",
                  position: (39, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (40, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/run/keys/longview-api-key",
                    position: (40, 20),
                   },
                  ],
                  position: (40, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (41, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "A file containing the Longview API key.\nTo get this, look in Longview settings which\nare found at https://manager.linode.com/longview/.\n\n<option>apiKeyFile</option> takes precedence over <option>apiKey</option>.\n",
                    position: (42, 1),
                   },
                  ],
                  position: (41, 23),
                 },
                },
               ],
               recursive: false,
               position: (37, 29),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "apacheStatusUrl",
               position: (50, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (50, 25),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (51, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (51, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (51, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (52, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (52, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (53, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "http://127.0.0.1/server-status",
                    position: (53, 20),
                   },
                  ],
                  position: (53, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (54, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "The Apache status page URL. If provided, Longview will\ngather statistics from this location. This requires Apache\nmod_status to be loaded and enabled.\n",
                    position: (55, 1),
                   },
                  ],
                  position: (54, 23),
                 },
                },
               ],
               recursive: false,
               position: (50, 34),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "nginxStatusUrl",
               position: (61, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (61, 24),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (62, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (62, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (62, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (63, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (63, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (64, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "http://127.0.0.1/nginx_status",
                    position: (64, 20),
                   },
                  ],
                  position: (64, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (65, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "The Nginx status page URL. Longview will gather statistics\nfrom this URL. This requires the Nginx stub_status module to\nbe enabled and configured at the given location.\n",
                    position: (66, 1),
                   },
                  ],
                  position: (65, 23),
                 },
                },
               ],
               recursive: false,
               position: (61, 33),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "mysqlUser",
               position: (72, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (72, 19),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (73, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (73, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (73, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (74, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (74, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (75, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "The user for connecting to the MySQL database. If provided,\nLongview will connect to MySQL and collect statistics about\nqueries, etc. This user does not need to have been granted\nany extra privileges.\n",
                    position: (76, 1),
                   },
                  ],
                  position: (75, 23),
                 },
                },
               ],
               recursive: false,
               position: (72, 28),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "mysqlPassword",
               position: (83, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (83, 23),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (84, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (84, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (84, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (85, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (85, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (86, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "The password corresponding to <option>mysqlUser</option>.\nWarning: this is stored in cleartext in the Nix store!\nUse <option>mysqlPasswordFile</option> instead.\n",
                    position: (87, 1),
                   },
                  ],
                  position: (86, 23),
                 },
                },
               ],
               recursive: false,
               position: (83, 32),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "mysqlPasswordFile",
               position: (93, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (93, 27),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (94, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (94, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "nullOr",
                      position: (94, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (94, 29),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "path",
                       position: (94, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (95, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "null",
                  position: (95, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (96, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/run/keys/dbpassword",
                    position: (96, 20),
                   },
                  ],
                  position: (96, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (97, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "A file containing the password corresponding to <option>mysqlUser</option>.\n",
                    position: (98, 1),
                   },
                  ],
                  position: (97, 23),
                 },
                },
               ],
               recursive: false,
               position: (93, 36),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (14, 25),
         },
        },
       ],
       recursive: false,
       position: (12, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (106, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (106, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (106, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (106, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (107, 5),
             },
             Raw {
              content: "services",
              position: (107, 13),
             },
             Raw {
              content: "longview",
              position: (107, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (108, 9),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Longview Metrics Collection",
                 position: (108, 24),
                },
               ],
               position: (108, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "after",
                 position: (109, 9),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (109, 20),
                  },
                 ],
                 position: (109, 19),
                },
               ],
               position: (109, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (110, 9),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (110, 23),
                  },
                 ],
                 position: (110, 22),
                },
               ],
               position: (110, 20),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (111, 9),
                },
                Raw {
                 content: "Type",
                 position: (111, 23),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "forking",
                 position: (111, 31),
                },
               ],
               position: (111, 30),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (112, 9),
                },
                Raw {
                 content: "ExecStop",
                 position: (112, 23),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "-",
                 position: (112, 35),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (112, 38),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "coreutils",
                     position: (112, 43),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/kill -TERM $MAINPID",
                 position: (112, 53),
                },
               ],
               position: (112, 34),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (113, 9),
                },
                Raw {
                 content: "ExecReload",
                 position: (113, 23),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "-",
                 position: (113, 37),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (113, 40),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "coreutils",
                     position: (113, 45),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/kill -HUP $MAINPID",
                 position: (113, 55),
                },
               ],
               position: (113, 36),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (114, 9),
                },
                Raw {
                 content: "PIDFile",
                 position: (114, 23),
                },
               ],
              },
              to: String {
               parts: [
                Interpolation {
                 expression: Variable {
                  identifier: "runDir",
                  position: (114, 36),
                 },
                },
                Raw {
                 content: "/longview.pid",
                 position: (114, 43),
                },
               ],
               position: (114, 33),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (115, 9),
                },
                Raw {
                 content: "ExecStart",
                 position: (115, 23),
                },
               ],
              },
              to: String {
               parts: [
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (115, 38),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "longview",
                     position: (115, 43),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/longview",
                 position: (115, 52),
                },
               ],
               position: (115, 35),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "preStart",
                 position: (116, 9),
                },
               ],
              },
              to: BinaryOperation {
               operator: Addition,
               operands: [
                BinaryOperation {
                 operator: Addition,
                 operands: [
                  BinaryOperation {
                   operator: Addition,
                   operands: [
                    BinaryOperation {
                     operator: Addition,
                     operands: [
                      String {
                       parts: [
                        Raw {
                         content: "umask 077\nmkdir -p ",
                         position: (117, 1),
                        },
                        Interpolation {
                         expression: Variable {
                          identifier: "configsDir",
                          position: (118, 22),
                         },
                        },
                        Raw {
                         content: "\n",
                         position: (118, 33),
                        },
                       ],
                       position: (116, 20),
                      },
                      Parentheses {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "optionalString",
                         position: (119, 15),
                        },
                        arguments: [
                         Parentheses {
                          expression: BinaryOperation {
                           operator: NotEqualTo,
                           operands: [
                            PropertyAccess {
                             expression: Variable {
                              identifier: "cfg",
                              position: (119, 31),
                             },
                             attribute_path: AttributePath {
                              parts: [
                               Raw {
                                content: "apiKeyFile",
                                position: (119, 35),
                               },
                              ],
                             },
                             default: None,
                            },
                            Variable {
                             identifier: "null",
                             position: (119, 49),
                            },
                           ],
                           position: (119, 46),
                          },
                          position: (119, 30),
                         },
                         String {
                          parts: [
                           Raw {
                            content: "cp --no-preserve=all \"",
                            position: (120, 1),
                           },
                           Interpolation {
                            expression: PropertyAccess {
                             expression: Variable {
                              identifier: "cfg",
                              position: (120, 35),
                             },
                             attribute_path: AttributePath {
                              parts: [
                               Raw {
                                content: "apiKeyFile",
                                position: (120, 39),
                               },
                              ],
                             },
                             default: None,
                            },
                           },
                           Raw {
                            content: "\" ",
                            position: (120, 50),
                           },
                           Interpolation {
                            expression: Variable {
                             identifier: "runDir",
                             position: (120, 54),
                            },
                           },
                           Raw {
                            content: "/longview.key\n",
                            position: (120, 61),
                           },
                          ],
                          position: (119, 55),
                         },
                        ],
                       },
                       position: (119, 14),
                      },
                     ],
                     position: (119, 12),
                    },
                    Parentheses {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "optionalString",
                       position: (121, 16),
                      },
                      arguments: [
                       Parentheses {
                        expression: BinaryOperation {
                         operator: NotEqualTo,
                         operands: [
                          PropertyAccess {
                           expression: Variable {
                            identifier: "cfg",
                            position: (121, 32),
                           },
                           attribute_path: AttributePath {
                            parts: [
                             Raw {
                              content: "apacheStatusUrl",
                              position: (121, 36),
                             },
                            ],
                           },
                           default: None,
                          },
                          String {
                           parts: [],
                           position: (121, 55),
                          },
                         ],
                         position: (121, 52),
                        },
                        position: (121, 31),
                       },
                       String {
                        parts: [
                         Raw {
                          content: "cat > ",
                          position: (122, 1),
                         },
                         Interpolation {
                          expression: Variable {
                           identifier: "configsDir",
                           position: (122, 19),
                          },
                         },
                         Raw {
                          content: "/Apache.conf <<EOF\nlocation ",
                          position: (122, 30),
                         },
                         Interpolation {
                          expression: PropertyAccess {
                           expression: Variable {
                            identifier: "cfg",
                            position: (123, 22),
                           },
                           attribute_path: AttributePath {
                            parts: [
                             Raw {
                              content: "apacheStatusUrl",
                              position: (123, 26),
                             },
                            ],
                           },
                           default: None,
                          },
                         },
                         Raw {
                          content: "?auto\nEOF\n",
                          position: (123, 42),
                         },
                        ],
                        position: (121, 59),
                       },
                      ],
                     },
                     position: (121, 15),
                    },
                   ],
                   position: (121, 13),
                  },
                  Parentheses {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "optionalString",
                     position: (125, 16),
                    },
                    arguments: [
                     Parentheses {
                      expression: BinaryOperation {
                       operator: LogicalAnd,
                       operands: [
                        BinaryOperation {
                         operator: NotEqualTo,
                         operands: [
                          PropertyAccess {
                           expression: Variable {
                            identifier: "cfg",
                            position: (125, 32),
                           },
                           attribute_path: AttributePath {
                            parts: [
                             Raw {
                              content: "mysqlUser",
                              position: (125, 36),
                             },
                            ],
                           },
                           default: None,
                          },
                          String {
                           parts: [],
                           position: (125, 49),
                          },
                         ],
                         position: (125, 46),
                        },
                        BinaryOperation {
                         operator: NotEqualTo,
                         operands: [
                          PropertyAccess {
                           expression: Variable {
                            identifier: "cfg",
                            position: (125, 55),
                           },
                           attribute_path: AttributePath {
                            parts: [
                             Raw {
                              content: "mysqlPasswordFile",
                              position: (125, 59),
                             },
                            ],
                           },
                           default: None,
                          },
                          Variable {
                           identifier: "null",
                           position: (125, 80),
                          },
                         ],
                         position: (125, 77),
                        },
                       ],
                       position: (125, 52),
                      },
                      position: (125, 31),
                     },
                     String {
                      parts: [
                       Raw {
                        content: "cat > ",
                        position: (126, 1),
                       },
                       Interpolation {
                        expression: Variable {
                         identifier: "configsDir",
                         position: (126, 19),
                        },
                       },
                       Raw {
                        content: "/MySQL.conf <<EOF\nusername ",
                        position: (126, 30),
                       },
                       Interpolation {
                        expression: PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (127, 22),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "mysqlUser",
                            position: (127, 26),
                           },
                          ],
                         },
                         default: None,
                        },
                       },
                       Raw {
                        content: "\npassword `head -n1 \"",
                        position: (127, 36),
                       },
                       Interpolation {
                        expression: PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (128, 33),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "mysqlPasswordFile",
                            position: (128, 37),
                           },
                          ],
                         },
                         default: None,
                        },
                       },
                       Raw {
                        content: "\"`\nEOF\n",
                        position: (128, 55),
                       },
                      ],
                      position: (125, 86),
                     },
                    ],
                   },
                   position: (125, 15),
                  },
                 ],
                 position: (125, 13),
                },
                Parentheses {
                 expression: FunctionApplication {
                  function: Variable {
                   identifier: "optionalString",
                   position: (130, 16),
                  },
                  arguments: [
                   Parentheses {
                    expression: BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (130, 32),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "nginxStatusUrl",
                          position: (130, 36),
                         },
                        ],
                       },
                       default: None,
                      },
                      String {
                       parts: [],
                       position: (130, 54),
                      },
                     ],
                     position: (130, 51),
                    },
                    position: (130, 31),
                   },
                   String {
                    parts: [
                     Raw {
                      content: "cat > ",
                      position: (131, 1),
                     },
                     Interpolation {
                      expression: Variable {
                       identifier: "configsDir",
                       position: (131, 19),
                      },
                     },
                     Raw {
                      content: "/Nginx.conf <<EOF\nlocation ",
                      position: (131, 30),
                     },
                     Interpolation {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (132, 22),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "nginxStatusUrl",
                          position: (132, 26),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "\nEOF\n",
                      position: (132, 41),
                     },
                    ],
                    position: (130, 58),
                   },
                  ],
                 },
                 position: (130, 15),
                },
               ],
               position: (130, 13),
              },
             },
            ],
            recursive: false,
            position: (108, 7),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "warnings",
              position: (137, 5),
             },
            ],
           },
           to: LetIn {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "warn",
                 position: (137, 20),
                },
               ],
              },
              to: Function {
               argument: Simple {
                identifier: "k",
               },
               definition: FunctionApplication {
                function: Variable {
                 identifier: "optional",
                 position: (137, 30),
                },
                arguments: [
                 Parentheses {
                  expression: BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (137, 40),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Interpolation {
                        expression: Variable {
                         identifier: "k",
                         position: (137, 46),
                        },
                       },
                      ],
                     },
                     default: None,
                    },
                    String {
                     parts: [],
                     position: (137, 52),
                    },
                   ],
                   position: (137, 49),
                  },
                  position: (137, 39),
                 },
                 String {
                  parts: [
                   Raw {
                    content: "config.services.longview.",
                    position: (138, 19),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "k",
                     position: (138, 46),
                    },
                   },
                   Raw {
                    content: " is insecure. Use ",
                    position: (138, 48),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "k",
                     position: (138, 68),
                    },
                   },
                   Raw {
                    content: "File instead.",
                    position: (138, 70),
                   },
                  ],
                  position: (138, 18),
                 },
                ],
               },
               position: (137, 27),
              },
             },
            ],
            target: FunctionApplication {
             function: Variable {
              identifier: "concatMap",
              position: (139, 19),
             },
             arguments: [
              Variable {
               identifier: "warn",
               position: (139, 29),
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "apiKey",
                   position: (139, 37),
                  },
                 ],
                 position: (139, 36),
                },
                String {
                 parts: [
                  Raw {
                   content: "mysqlPassword",
                   position: (139, 46),
                  },
                 ],
                 position: (139, 45),
                },
               ],
               position: (139, 34),
              },
             ],
            },
            position: (137, 16),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "assertions",
              position: (141, 5),
             },
            ],
           },
           to: List {
            elements: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "assertion",
                   position: (142, 9),
                  },
                 ],
                },
                to: BinaryOperation {
                 operator: NotEqualTo,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (142, 21),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "apiKeyFile",
                      position: (142, 25),
                     },
                    ],
                   },
                   default: None,
                  },
                  Variable {
                   identifier: "null",
                   position: (142, 39),
                  },
                 ],
                 position: (142, 36),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "message",
                   position: (143, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Longview needs an API key configured",
                   position: (143, 20),
                  },
                 ],
                 position: (143, 19),
                },
               },
              ],
              recursive: false,
              position: (142, 7),
             },
            ],
            position: (141, 18),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "services",
              position: (148, 5),
             },
             Raw {
              content: "longview",
              position: (148, 14),
             },
             Raw {
              content: "apiKeyFile",
              position: (148, 23),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (148, 36),
            },
            arguments: [
             Parentheses {
              expression: BinaryOperation {
               operator: NotEqualTo,
               operands: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (148, 42),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "apiKey",
                    position: (148, 46),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [],
                 position: (148, 56),
                },
               ],
               position: (148, 53),
              },
              position: (148, 41),
             },
             Parentheses {
              expression: FunctionApplication {
               function: Variable {
                identifier: "mkDefault",
                position: (149, 8),
               },
               arguments: [
                Parentheses {
                 expression: FunctionApplication {
                  function: Variable {
                   identifier: "toString",
                   position: (149, 19),
                  },
                  arguments: [
                   Parentheses {
                    expression: FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (149, 29),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "writeTextFile",
                         position: (149, 34),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      Map {
                       bindings: [
                        Binding {
                         from: AttributePath {
                          parts: [
                           Raw {
                            content: "name",
                            position: (150, 9),
                           },
                          ],
                         },
                         to: String {
                          parts: [
                           Raw {
                            content: "longview.key",
                            position: (150, 17),
                           },
                          ],
                          position: (150, 16),
                         },
                        },
                        Binding {
                         from: AttributePath {
                          parts: [
                           Raw {
                            content: "text",
                            position: (151, 9),
                           },
                          ],
                         },
                         to: PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (151, 16),
                          },
                          attribute_path: AttributePath {
                           parts: [
                            Raw {
                             content: "apiKey",
                             position: (151, 20),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                       ],
                       recursive: false,
                       position: (149, 48),
                      },
                     ],
                    },
                    position: (149, 28),
                   },
                  ],
                 },
                 position: (149, 18),
                },
               ],
              },
              position: (149, 7),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "services",
              position: (155, 5),
             },
             Raw {
              content: "longview",
              position: (155, 14),
             },
             Raw {
              content: "mysqlPasswordFile",
              position: (155, 23),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkDefault",
             position: (155, 43),
            },
            arguments: [
             Parentheses {
              expression: FunctionApplication {
               function: Variable {
                identifier: "toString",
                position: (155, 54),
               },
               arguments: [
                Parentheses {
                 expression: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (155, 64),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "writeTextFile",
                      position: (155, 69),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   Map {
                    bindings: [
                     Binding {
                      from: AttributePath {
                       parts: [
                        Raw {
                         content: "name",
                         position: (156, 7),
                        },
                       ],
                      },
                      to: String {
                       parts: [
                        Raw {
                         content: "mysql-password-file",
                         position: (156, 15),
                        },
                       ],
                       position: (156, 14),
                      },
                     },
                     Binding {
                      from: AttributePath {
                       parts: [
                        Raw {
                         content: "text",
                         position: (157, 7),
                        },
                       ],
                      },
                      to: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (157, 14),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "mysqlPassword",
                          position: (157, 18),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                    ],
                    recursive: false,
                    position: (155, 83),
                   },
                  ],
                 },
                 position: (155, 63),
                },
               ],
              },
              position: (155, 53),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (106, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (11, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}