---
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: "buildkite-agents",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "mkHookOption",
        position: (8, 3),
       },
      ],
     },
     to: Function {
      argument: Destructured {
       identifier: None,
       arguments: [
        DestructuredArgument {
         identifier: "name",
         default: None,
        },
        DestructuredArgument {
         identifier: "description",
         default: None,
        },
        DestructuredArgument {
         identifier: "example",
         default: Some(
          Variable {
           identifier: "null",
           position: (8, 49),
          },
         ),
        },
       ],
       ellipsis: false,
      },
      definition: Map {
       bindings: [
        Inherit {
         from: None,
         attributes: [
          Raw {
           content: "name",
           position: (9, 13),
          },
         ],
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "value",
            position: (10, 5),
           },
          ],
         },
         to: BinaryOperation {
          operator: Update,
          operands: [
           FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (10, 13),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (11, 7),
                  },
                 ],
                },
                to: Variable {
                 identifier: "null",
                 position: (11, 17),
                },
               },
               Inherit {
                from: None,
                attributes: [
                 Raw {
                  content: "description",
                  position: (12, 15),
                 },
                ],
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (13, 7),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (13, 14),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "nullOr",
                     position: (13, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (13, 27),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "lines",
                      position: (13, 33),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               },
              ],
              recursive: false,
              position: (10, 22),
             },
            ],
           },
           Parentheses {
            expression: IfThenElse {
             predicate: BinaryOperation {
              operator: EqualTo,
              operands: [
               Variable {
                identifier: "example",
                position: (14, 14),
               },
               Variable {
                identifier: "null",
                position: (14, 25),
               },
              ],
              position: (14, 22),
             },
             then: Map {
              bindings: [],
              recursive: false,
              position: (14, 35),
             },
             else_: Map {
              bindings: [
               Inherit {
                from: None,
                attributes: [
                 Raw {
                  content: "example",
                  position: (14, 53),
                 },
                ],
               },
              ],
              recursive: false,
              position: (14, 43),
             },
             position: (14, 11),
            },
            position: (14, 10),
           },
          ],
          position: (14, 7),
         },
        },
       ],
       recursive: false,
       position: (8, 57),
      },
      position: (8, 18),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "mkHookOptions",
        position: (16, 3),
       },
      ],
     },
     to: Function {
      argument: Simple {
       identifier: "hooks",
      },
      definition: FunctionApplication {
       function: Variable {
        identifier: "listToAttrs",
        position: (16, 26),
       },
       arguments: [
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "map",
           position: (16, 39),
          },
          arguments: [
           Variable {
            identifier: "mkHookOption",
            position: (16, 43),
           },
           Variable {
            identifier: "hooks",
            position: (16, 56),
           },
          ],
         },
         position: (16, 38),
        },
       ],
      },
      position: (16, 19),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "hooksDir",
        position: (18, 3),
       },
      ],
     },
     to: Function {
      argument: Simple {
       identifier: "cfg",
      },
      definition: LetIn {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "mkHookEntry",
            position: (19, 5),
           },
          ],
         },
         to: Function {
          argument: Simple {
           identifier: "name",
          },
          definition: Function {
           argument: Simple {
            identifier: "value",
           },
           definition: String {
            parts: [
             Raw {
              content: "cat > $out/",
              position: (20, 1),
             },
             Interpolation {
              expression: Variable {
               identifier: "name",
               position: (20, 20),
              },
             },
             Raw {
              content: " <<'EOF'\n#! ",
              position: (20, 25),
             },
             Interpolation {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (21, 12),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "runtimeShell",
                  position: (21, 17),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "\nset -e\n",
              position: (21, 30),
             },
             Interpolation {
              expression: Variable {
               identifier: "value",
               position: (23, 9),
              },
             },
             Raw {
              content: "\nEOF\nchmod 755 $out/",
              position: (23, 15),
             },
             Interpolation {
              expression: Variable {
               identifier: "name",
               position: (25, 24),
              },
             },
             Raw {
              content: "\n",
              position: (25, 29),
             },
            ],
            position: (19, 32),
           },
           position: (19, 25),
          },
          position: (19, 19),
         },
        },
       ],
       target: FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "pkgs",
          position: (27, 6),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "runCommand",
            position: (27, 11),
           },
          ],
         },
         default: None,
        },
        arguments: [
         String {
          parts: [
           Raw {
            content: "buildkite-agent-hooks",
            position: (27, 23),
           },
          ],
          position: (27, 22),
         },
         Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "preferLocalBuild",
               position: (27, 48),
              },
             ],
            },
            to: Variable {
             identifier: "true",
             position: (27, 67),
            },
           },
          ],
          recursive: false,
          position: (27, 46),
         },
         String {
          parts: [
           Raw {
            content: "mkdir $out\n",
            position: (28, 1),
           },
           Interpolation {
            expression: FunctionApplication {
             function: Variable {
              identifier: "concatStringsSep",
              position: (29, 7),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "\n",
                 position: (29, 25),
                },
               ],
               position: (29, 24),
              },
              Parentheses {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "mapAttrsToList",
                 position: (29, 30),
                },
                arguments: [
                 Variable {
                  identifier: "mkHookEntry",
                  position: (29, 45),
                 },
                 Parentheses {
                  expression: FunctionApplication {
                   function: Variable {
                    identifier: "filterAttrs",
                    position: (29, 58),
                   },
                   arguments: [
                    Parentheses {
                     expression: Function {
                      argument: Simple {
                       identifier: "n",
                      },
                      definition: Function {
                       argument: Simple {
                        identifier: "v",
                       },
                       definition: BinaryOperation {
                        operator: NotEqualTo,
                        operands: [
                         Variable {
                          identifier: "v",
                          position: (29, 77),
                         },
                         Variable {
                          identifier: "null",
                          position: (29, 82),
                         },
                        ],
                        position: (29, 79),
                       },
                       position: (29, 74),
                      },
                      position: (29, 71),
                     },
                     position: (29, 70),
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (29, 88),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "hooks",
                        position: (29, 92),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                  },
                  position: (29, 57),
                 },
                ],
               },
               position: (29, 29),
              },
             ],
            },
           },
           Raw {
            content: "\n",
            position: (29, 100),
           },
          ],
          position: (27, 75),
         },
        ],
       },
       position: (18, 19),
      },
      position: (18, 14),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "buildkiteOptions",
        position: (32, 3),
       },
      ],
     },
     to: Function {
      argument: Destructured {
       identifier: None,
       arguments: [
        DestructuredArgument {
         identifier: "name",
         default: Some(
          String {
           parts: [],
           position: (32, 31),
          },
         ),
        },
        DestructuredArgument {
         identifier: "config",
         default: None,
        },
       ],
       ellipsis: true,
      },
      definition: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "options",
            position: (33, 5),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (34, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (34, 16),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (35, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "true",
                  position: (35, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (36, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (36, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "bool",
                     position: (36, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (37, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Whether to enable this buildkite agent",
                    position: (37, 24),
                   },
                  ],
                  position: (37, 23),
                 },
                },
               ],
               recursive: false,
               position: (34, 25),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "package",
               position: (40, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (40, 17),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (41, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (41, 19),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "buildkite-agent",
                     position: (41, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "defaultText",
                    position: (42, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (42, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "pkgs.buildkite-agent",
                      position: (42, 42),
                     },
                    ],
                    position: (42, 41),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (43, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Which buildkite-agent derivation to use",
                    position: (43, 24),
                   },
                  ],
                  position: (43, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (44, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (44, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "package",
                     position: (44, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
               ],
               recursive: false,
               position: (40, 26),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "dataDir",
               position: (47, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (47, 17),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (48, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/var/lib/buildkite-agent-",
                    position: (48, 20),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "name",
                     position: (48, 47),
                    },
                   },
                  ],
                  position: (48, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (49, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "The workdir for the agent",
                    position: (49, 24),
                   },
                  ],
                  position: (49, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (50, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (50, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (50, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
               ],
               recursive: false,
               position: (47, 26),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "runtimePackages",
               position: (53, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (53, 25),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (54, 9),
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (54, 21),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "bash",
                       position: (54, 26),
                      },
                     ],
                    },
                    default: None,
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (54, 31),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "gnutar",
                       position: (54, 36),
                      },
                     ],
                    },
                    default: None,
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (54, 43),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "gzip",
                       position: (54, 48),
                      },
                     ],
                    },
                    default: None,
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (54, 53),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "git",
                       position: (54, 58),
                      },
                     ],
                    },
                    default: None,
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (54, 62),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "nix",
                       position: (54, 67),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                  position: (54, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "defaultText",
                    position: (55, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (55, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "[ pkgs.bash pkgs.gnutar pkgs.gzip pkgs.git pkgs.nix ]",
                      position: (55, 42),
                     },
                    ],
                    position: (55, 41),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (56, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Add programs to the buildkite-agent environment",
                    position: (56, 24),
                   },
                  ],
                  position: (56, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (57, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (57, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "listOf",
                      position: (57, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (57, 29),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "package",
                       position: (57, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                },
               ],
               recursive: false,
               position: (53, 34),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "tokenPath",
               position: (60, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (60, 19),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (61, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (61, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "path",
                     position: (61, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (62, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "The token from your Buildkite \"Agents\" page.\n\nA run-time path to the token file, which is supposed to be provisioned\noutside of Nix store.\n",
                    position: (63, 1),
                   },
                  ],
                  position: (62, 23),
                 },
                },
               ],
               recursive: false,
               position: (60, 28),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "name",
               position: (70, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (70, 14),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (71, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (71, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (71, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (72, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "%hostname-",
                    position: (72, 20),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "name",
                     position: (72, 32),
                    },
                   },
                   Raw {
                    content: "-%n",
                    position: (72, 37),
                   },
                  ],
                  position: (72, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (73, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "The name of the agent as seen in the buildkite dashboard.\n",
                    position: (74, 1),
                   },
                  ],
                  position: (73, 23),
                 },
                },
               ],
               recursive: false,
               position: (70, 23),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "tags",
               position: (78, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (78, 14),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (79, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (79, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "attrsOf",
                      position: (79, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   Parentheses {
                    expression: FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (79, 31),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "either",
                         position: (79, 37),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "types",
                        position: (79, 44),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "str",
                          position: (79, 50),
                         },
                        ],
                       },
                       default: None,
                      },
                      Parentheses {
                       expression: FunctionApplication {
                        function: PropertyAccess {
                         expression: Variable {
                          identifier: "types",
                          position: (79, 55),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "listOf",
                            position: (79, 61),
                           },
                          ],
                         },
                         default: None,
                        },
                        arguments: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "types",
                           position: (79, 68),
                          },
                          attribute_path: AttributePath {
                           parts: [
                            Raw {
                             content: "str",
                             position: (79, 74),
                            },
                           ],
                          },
                          default: None,
                         },
                        ],
                       },
                       position: (79, 54),
                      },
                     ],
                    },
                    position: (79, 30),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (80, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [],
                  recursive: false,
                  position: (80, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (81, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "queue",
                       position: (81, 21),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "default",
                       position: (81, 30),
                      },
                     ],
                     position: (81, 29),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "docker",
                       position: (81, 40),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "true",
                       position: (81, 50),
                      },
                     ],
                     position: (81, 49),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "ruby2",
                       position: (81, 57),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "true",
                       position: (81, 65),
                      },
                     ],
                     position: (81, 64),
                    },
                   },
                  ],
                  recursive: false,
                  position: (81, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (82, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Tags for the agent.\n",
                    position: (83, 1),
                   },
                  ],
                  position: (82, 23),
                 },
                },
               ],
               recursive: false,
               position: (78, 23),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "extraConfig",
               position: (87, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (87, 21),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (88, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (88, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "lines",
                     position: (88, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (89, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (89, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (90, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "debug=true",
                    position: (90, 20),
                   },
                  ],
                  position: (90, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (91, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Extra lines to be added verbatim to the configuration file.\n",
                    position: (92, 1),
                   },
                  ],
                  position: (91, 23),
                 },
                },
               ],
               recursive: false,
               position: (87, 30),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "privateSshKeyPath",
               position: (96, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (96, 27),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (97, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (97, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "nullOr",
                      position: (97, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (97, 29),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "path",
                       position: (97, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (98, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "null",
                  position: (98, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "apply",
                    position: (101, 9),
                   },
                  ],
                 },
                 to: Function {
                  argument: Simple {
                   identifier: "final",
                  },
                  definition: IfThenElse {
                   predicate: BinaryOperation {
                    operator: EqualTo,
                    operands: [
                     Variable {
                      identifier: "final",
                      position: (101, 27),
                     },
                     Variable {
                      identifier: "null",
                      position: (101, 36),
                     },
                    ],
                    position: (101, 33),
                   },
                   then: Variable {
                    identifier: "null",
                    position: (101, 46),
                   },
                   else_: FunctionApplication {
                    function: Variable {
                     identifier: "toString",
                     position: (101, 56),
                    },
                    arguments: [
                     Variable {
                      identifier: "final",
                      position: (101, 65),
                     },
                    ],
                   },
                   position: (101, 24),
                  },
                  position: (101, 17),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (103, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "OpenSSH private key\n\nA run-time path to the key file, which is supposed to be provisioned\noutside of Nix store.\n",
                    position: (104, 1),
                   },
                  ],
                  position: (103, 23),
                 },
                },
               ],
               recursive: false,
               position: (96, 36),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "hooks",
               position: (111, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkHookOptions",
              position: (111, 15),
             },
             arguments: [
              List {
               elements: [
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (112, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "checkout",
                      position: (112, 19),
                     },
                    ],
                    position: (112, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (113, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `checkout` hook script will replace the default checkout routine of the\nbootstrap.sh script. You can use this hook to do your own SCM checkout\nbehaviour\n",
                      position: (114, 1),
                     },
                    ],
                    position: (113, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (112, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (118, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "command",
                      position: (118, 19),
                     },
                    ],
                    position: (118, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (119, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `command` hook script will replace the default implementation of running\nthe build command.\n",
                      position: (120, 1),
                     },
                    ],
                    position: (119, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (118, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (123, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "environment",
                      position: (123, 19),
                     },
                    ],
                    position: (123, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (124, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `environment` hook will run before all other commands, and can be used\nto set up secrets, data, etc. Anything exported in hooks will be available\nto the build script.\n\nNote: the contents of this file will be copied to the world-readable\nNix store.\n",
                      position: (125, 1),
                     },
                    ],
                    position: (124, 25),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "example",
                      position: (132, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "export SECRET_VAR=`head -1 /run/keys/secret`\n",
                      position: (133, 1),
                     },
                    ],
                    position: (132, 21),
                   },
                  },
                 ],
                 recursive: false,
                 position: (123, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (135, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "post-artifact",
                      position: (135, 19),
                     },
                    ],
                    position: (135, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (136, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `post-artifact` hook will run just after artifacts are uploaded\n",
                      position: (137, 1),
                     },
                    ],
                    position: (136, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (135, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (139, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "post-checkout",
                      position: (139, 19),
                     },
                    ],
                    position: (139, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (140, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `post-checkout` hook will run after the bootstrap script has checked out\nyour projects source code.\n",
                      position: (141, 1),
                     },
                    ],
                    position: (140, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (139, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (144, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "post-command",
                      position: (144, 19),
                     },
                    ],
                    position: (144, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (145, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `post-command` hook will run after the bootstrap script has run your\nbuild commands\n",
                      position: (146, 1),
                     },
                    ],
                    position: (145, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (144, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (149, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "pre-artifact",
                      position: (149, 19),
                     },
                    ],
                    position: (149, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (150, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `pre-artifact` hook will run just before artifacts are uploaded\n",
                      position: (151, 1),
                     },
                    ],
                    position: (150, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (149, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (153, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "pre-checkout",
                      position: (153, 19),
                     },
                    ],
                    position: (153, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (154, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `pre-checkout` hook will run just before your projects source code is\nchecked out from your SCM provider\n",
                      position: (155, 1),
                     },
                    ],
                    position: (154, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (153, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (158, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "pre-command",
                      position: (158, 19),
                     },
                    ],
                    position: (158, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (159, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `pre-command` hook will run just before your build command runs\n",
                      position: (160, 1),
                     },
                    ],
                    position: (159, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (158, 9),
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "name",
                      position: (162, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "pre-exit",
                      position: (162, 19),
                     },
                    ],
                    position: (162, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "description",
                      position: (163, 11),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "The `pre-exit` hook will run just before your build job finishes\n",
                      position: (164, 1),
                     },
                    ],
                    position: (163, 25),
                   },
                  },
                 ],
                 recursive: false,
                 position: (162, 9),
                },
               ],
               position: (111, 29),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "hooksPath",
               position: (168, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (168, 19),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (169, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (169, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "path",
                     position: (169, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (170, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "hooksDir",
                   position: (170, 19),
                  },
                  arguments: [
                   Variable {
                    identifier: "config",
                    position: (170, 28),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "defaultText",
                    position: (171, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalDocBook",
                   position: (171, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "generated from <option>services.buildkite-agents.&lt;name&gt;.hooks</option>",
                      position: (171, 39),
                     },
                    ],
                    position: (171, 38),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (172, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Path to the directory storing the hooks.\nConsider using <option>services.buildkite-agents.&lt;name&gt;.hooks.&lt;name&gt;</option>\ninstead.\n",
                    position: (173, 1),
                   },
                  ],
                  position: (172, 23),
                 },
                },
               ],
               recursive: false,
               position: (168, 28),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "shell",
               position: (179, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (179, 15),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (180, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (180, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (180, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (181, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (181, 22),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "bash",
                        position: (181, 27),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/bash -e -c",
                    position: (181, 32),
                   },
                  ],
                  position: (181, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "defaultText",
                    position: (182, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (182, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "\"",
                      position: (182, 43),
                     },
                     Raw {
                      content: "$",
                      position: (182, 44),
                     },
                     Raw {
                      content: "{pkgs.bash}/bin/bash -e -c\"",
                      position: (182, 47),
                     },
                    ],
                    position: (182, 41),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (183, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Command that buildkite-agent 3 will execute when it spawns a shell.\n",
                    position: (184, 1),
                   },
                  ],
                  position: (183, 23),
                 },
                },
               ],
               recursive: false,
               position: (179, 24),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (33, 15),
         },
        },
       ],
       recursive: false,
       position: (32, 50),
      },
      position: (32, 22),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "enabledAgents",
        position: (189, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (189, 19),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "filterAttrs",
          position: (189, 23),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Parentheses {
        expression: Function {
         argument: Simple {
          identifier: "n",
         },
         definition: Function {
          argument: Simple {
           identifier: "v",
          },
          definition: PropertyAccess {
           expression: Variable {
            identifier: "v",
            position: (189, 42),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "enable",
              position: (189, 44),
             },
            ],
           },
           default: None,
          },
          position: (189, 39),
         },
         position: (189, 36),
        },
        position: (189, 35),
       },
       Variable {
        identifier: "cfg",
        position: (189, 52),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "mapAgents",
        position: (190, 3),
       },
      ],
     },
     to: Function {
      argument: Simple {
       identifier: "function",
      },
      definition: FunctionApplication {
       function: PropertyAccess {
        expression: Variable {
         identifier: "lib",
         position: (190, 25),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "mkMerge",
           position: (190, 29),
          },
         ],
        },
        default: None,
       },
       arguments: [
        Parentheses {
         expression: FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (190, 38),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "mapAttrsToList",
              position: (190, 42),
             },
            ],
           },
           default: None,
          },
          arguments: [
           Variable {
            identifier: "function",
            position: (190, 57),
           },
           Variable {
            identifier: "enabledAgents",
            position: (190, 66),
           },
          ],
         },
         position: (190, 37),
        },
       ],
      },
      position: (190, 15),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (193, 3),
        },
        Raw {
         content: "services",
         position: (193, 11),
        },
        Raw {
         content: "buildkite-agents",
         position: (193, 20),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkOption",
        position: (193, 39),
       },
       arguments: [
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "type",
              position: (194, 5),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "types",
              position: (194, 12),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "attrsOf",
                position: (194, 18),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Parentheses {
              expression: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (194, 27),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "submodule",
                   position: (194, 33),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                Variable {
                 identifier: "buildkiteOptions",
                 position: (194, 43),
                },
               ],
              },
              position: (194, 26),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "default",
              position: (195, 5),
             },
            ],
           },
           to: Map {
            bindings: [],
            recursive: false,
            position: (195, 15),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "description",
              position: (196, 5),
             },
            ],
           },
           to: String {
            parts: [
             Raw {
              content: "Attribute set of buildkite agents.\nThe attribute key is combined with the hostname and a unique integer to\ncreate the final agent name. This can be overridden by setting the `name`\nattribute.\n",
              position: (197, 1),
             },
            ],
            position: (196, 19),
           },
          },
         ],
         recursive: false,
         position: (193, 48),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (204, 3),
        },
        Raw {
         content: "users",
         position: (204, 10),
        },
        Raw {
         content: "users",
         position: (204, 16),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mapAgents",
        position: (204, 24),
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "name",
          },
          definition: Function {
           argument: Simple {
            identifier: "cfg",
           },
           definition: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Expression {
                 ast: String {
                  parts: [
                   Raw {
                    content: "buildkite-agent-",
                    position: (205, 6),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "name",
                     position: (205, 24),
                    },
                   },
                  ],
                  position: (205, 5),
                 },
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "name",
                    position: (206, 7),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "buildkite-agent-",
                    position: (206, 15),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "name",
                     position: (206, 33),
                    },
                   },
                  ],
                  position: (206, 14),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "home",
                    position: (207, 7),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (207, 14),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "dataDir",
                     position: (207, 18),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "createHome",
                    position: (208, 7),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "true",
                  position: (208, 20),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (209, 7),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Buildkite agent user",
                    position: (209, 22),
                   },
                  ],
                  position: (209, 21),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "extraGroups",
                    position: (210, 7),
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "keys",
                      position: (210, 24),
                     },
                    ],
                    position: (210, 23),
                   },
                  ],
                  position: (210, 21),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "isSystemUser",
                    position: (211, 7),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "true",
                  position: (211, 22),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "group",
                    position: (212, 7),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "buildkite-agent-",
                    position: (212, 16),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "name",
                     position: (212, 34),
                    },
                   },
                  ],
                  position: (212, 15),
                 },
                },
               ],
               recursive: false,
               position: (205, 33),
              },
             },
            ],
            recursive: false,
            position: (204, 46),
           },
           position: (204, 41),
          },
          position: (204, 35),
         },
         position: (204, 34),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (215, 3),
        },
        Raw {
         content: "users",
         position: (215, 10),
        },
        Raw {
         content: "groups",
         position: (215, 16),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mapAgents",
        position: (215, 25),
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "name",
          },
          definition: Function {
           argument: Simple {
            identifier: "cfg",
           },
           definition: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Expression {
                 ast: String {
                  parts: [
                   Raw {
                    content: "buildkite-agent-",
                    position: (216, 6),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "name",
                     position: (216, 24),
                    },
                   },
                  ],
                  position: (216, 5),
                 },
                },
               ],
              },
              to: Map {
               bindings: [],
               recursive: false,
               position: (216, 33),
              },
             },
            ],
            recursive: false,
            position: (215, 47),
           },
           position: (215, 42),
          },
          position: (215, 36),
         },
         position: (215, 35),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (219, 3),
        },
        Raw {
         content: "systemd",
         position: (219, 10),
        },
        Raw {
         content: "services",
         position: (219, 18),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mapAgents",
        position: (219, 29),
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "name",
          },
          definition: Function {
           argument: Simple {
            identifier: "cfg",
           },
           definition: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Expression {
                 ast: String {
                  parts: [
                   Raw {
                    content: "buildkite-agent-",
                    position: (220, 6),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "name",
                     position: (220, 24),
                    },
                   },
                  ],
                  position: (220, 5),
                 },
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (221, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Buildkite Agent",
                    position: (221, 24),
                   },
                  ],
                  position: (221, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "wantedBy",
                    position: (222, 9),
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "multi-user.target",
                      position: (222, 23),
                     },
                    ],
                    position: (222, 22),
                   },
                  ],
                  position: (222, 20),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "after",
                    position: (223, 9),
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "network.target",
                      position: (223, 20),
                     },
                    ],
                    position: (223, 19),
                   },
                  ],
                  position: (223, 17),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "path",
                    position: (224, 9),
                   },
                  ],
                 },
                 to: BinaryOperation {
                  operator: Concatenation,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (224, 16),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "runtimePackages",
                       position: (224, 20),
                      },
                     ],
                    },
                    default: None,
                   },
                   List {
                    elements: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (224, 41),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "package",
                         position: (224, 45),
                        },
                       ],
                      },
                      default: None,
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (224, 53),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "coreutils",
                         position: (224, 58),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                    position: (224, 39),
                   },
                  ],
                  position: (224, 36),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "environment",
                    position: (225, 9),
                   },
                  ],
                 },
                 to: BinaryOperation {
                  operator: Update,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (225, 23),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "networking",
                       position: (225, 30),
                      },
                      Raw {
                       content: "proxy",
                       position: (225, 41),
                      },
                      Raw {
                       content: "envVars",
                       position: (225, 47),
                      },
                     ],
                    },
                    default: None,
                   },
                   Map {
                    bindings: [
                     Binding {
                      from: AttributePath {
                       parts: [
                        Raw {
                         content: "HOME",
                         position: (226, 11),
                        },
                       ],
                      },
                      to: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (226, 18),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "dataDir",
                          position: (226, 22),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Binding {
                      from: AttributePath {
                       parts: [
                        Raw {
                         content: "NIX_REMOTE",
                         position: (227, 11),
                        },
                       ],
                      },
                      to: String {
                       parts: [
                        Raw {
                         content: "daemon",
                         position: (227, 25),
                        },
                       ],
                       position: (227, 24),
                      },
                     },
                    ],
                    recursive: false,
                    position: (225, 58),
                   },
                  ],
                  position: (225, 55),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "preStart",
                    position: (232, 9),
                   },
                  ],
                 },
                 to: LetIn {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "sshDir",
                       position: (233, 11),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (233, 23),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "dataDir",
                           position: (233, 27),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/.ssh",
                       position: (233, 35),
                      },
                     ],
                     position: (233, 20),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "tagStr",
                       position: (234, 11),
                      },
                     ],
                    },
                    to: Function {
                     argument: Simple {
                      identifier: "name",
                     },
                     definition: Function {
                      argument: Simple {
                       identifier: "value",
                      },
                      definition: IfThenElse {
                       predicate: FunctionApplication {
                        function: PropertyAccess {
                         expression: Variable {
                          identifier: "lib",
                          position: (235, 16),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "isList",
                            position: (235, 20),
                           },
                          ],
                         },
                         default: None,
                        },
                        arguments: [
                         Variable {
                          identifier: "value",
                          position: (235, 27),
                         },
                        ],
                       },
                       then: FunctionApplication {
                        function: PropertyAccess {
                         expression: Variable {
                          identifier: "lib",
                          position: (236, 18),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "concatStringsSep",
                            position: (236, 22),
                           },
                          ],
                         },
                         default: None,
                        },
                        arguments: [
                         String {
                          parts: [
                           Raw {
                            content: ",",
                            position: (236, 40),
                           },
                          ],
                          position: (236, 39),
                         },
                         Parentheses {
                          expression: FunctionApplication {
                           function: PropertyAccess {
                            expression: Variable {
                             identifier: "builtins",
                             position: (236, 44),
                            },
                            attribute_path: AttributePath {
                             parts: [
                              Raw {
                               content: "map",
                               position: (236, 53),
                              },
                             ],
                            },
                            default: None,
                           },
                           arguments: [
                            Parentheses {
                             expression: Function {
                              argument: Simple {
                               identifier: "v",
                              },
                              definition: String {
                               parts: [
                                Interpolation {
                                 expression: Variable {
                                  identifier: "name",
                                  position: (236, 64),
                                 },
                                },
                                Raw {
                                 content: "=",
                                 position: (236, 69),
                                },
                                Interpolation {
                                 expression: Variable {
                                  identifier: "v",
                                  position: (236, 72),
                                 },
                                },
                               ],
                               position: (236, 61),
                              },
                              position: (236, 58),
                             },
                             position: (236, 57),
                            },
                            Variable {
                             identifier: "value",
                             position: (236, 77),
                            },
                           ],
                          },
                          position: (236, 43),
                         },
                        ],
                       },
                       else_: String {
                        parts: [
                         Interpolation {
                          expression: Variable {
                           identifier: "name",
                           position: (237, 21),
                          },
                         },
                         Raw {
                          content: "=",
                          position: (237, 26),
                         },
                         Interpolation {
                          expression: Variable {
                           identifier: "value",
                           position: (237, 29),
                          },
                         },
                        ],
                        position: (237, 18),
                       },
                       position: (235, 13),
                      },
                      position: (234, 26),
                     },
                     position: (234, 20),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "tagsStr",
                       position: (238, 11),
                      },
                     ],
                    },
                    to: FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "lib",
                       position: (238, 21),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "concatStringsSep",
                         position: (238, 25),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      String {
                       parts: [
                        Raw {
                         content: ",",
                         position: (238, 43),
                        },
                       ],
                       position: (238, 42),
                      },
                      Parentheses {
                       expression: FunctionApplication {
                        function: PropertyAccess {
                         expression: Variable {
                          identifier: "lib",
                          position: (238, 47),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "mapAttrsToList",
                            position: (238, 51),
                           },
                          ],
                         },
                         default: None,
                        },
                        arguments: [
                         Variable {
                          identifier: "tagStr",
                          position: (238, 66),
                         },
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (238, 73),
                          },
                          attribute_path: AttributePath {
                           parts: [
                            Raw {
                             content: "tags",
                             position: (238, 77),
                            },
                           ],
                          },
                          default: None,
                         },
                        ],
                       },
                       position: (238, 46),
                      },
                     ],
                    },
                   },
                  ],
                  target: BinaryOperation {
                   operator: Addition,
                   operands: [
                    FunctionApplication {
                     function: Variable {
                      identifier: "optionalString",
                      position: (240, 11),
                     },
                     arguments: [
                      Parentheses {
                       expression: BinaryOperation {
                        operator: NotEqualTo,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (240, 27),
                          },
                          attribute_path: AttributePath {
                           parts: [
                            Raw {
                             content: "privateSshKeyPath",
                             position: (240, 31),
                            },
                           ],
                          },
                          default: None,
                         },
                         Variable {
                          identifier: "null",
                          position: (240, 52),
                         },
                        ],
                        position: (240, 49),
                       },
                       position: (240, 26),
                      },
                      String {
                       parts: [
                        Raw {
                         content: "mkdir -m 0700 -p \"",
                         position: (241, 1),
                        },
                        Interpolation {
                         expression: Variable {
                          identifier: "sshDir",
                          position: (241, 33),
                         },
                        },
                        Raw {
                         content: "\"\ninstall -m600 \"",
                         position: (241, 40),
                        },
                        Interpolation {
                         expression: FunctionApplication {
                          function: Variable {
                           identifier: "toString",
                           position: (242, 30),
                          },
                          arguments: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "cfg",
                             position: (242, 39),
                            },
                            attribute_path: AttributePath {
                             parts: [
                              Raw {
                               content: "privateSshKeyPath",
                               position: (242, 43),
                              },
                             ],
                            },
                            default: None,
                           },
                          ],
                         },
                        },
                        Raw {
                         content: "\" \"",
                         position: (242, 61),
                        },
                        Interpolation {
                         expression: Variable {
                          identifier: "sshDir",
                          position: (242, 66),
                         },
                        },
                        Raw {
                         content: "/id_rsa\"\n",
                         position: (242, 73),
                        },
                       ],
                       position: (240, 58),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "cat > \"",
                       position: (244, 1),
                      },
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (244, 22),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "dataDir",
                           position: (244, 26),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/buildkite-agent.cfg\" <<EOF\ntoken=\"$(cat ",
                       position: (244, 34),
                      },
                      Interpolation {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "toString",
                         position: (245, 28),
                        },
                        arguments: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (245, 37),
                          },
                          attribute_path: AttributePath {
                           parts: [
                            Raw {
                             content: "tokenPath",
                             position: (245, 41),
                            },
                           ],
                          },
                          default: None,
                         },
                        ],
                       },
                      },
                      Raw {
                       content: ")\"\nname=\"",
                       position: (245, 51),
                      },
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (246, 21),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "name",
                           position: (246, 25),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "\"\nshell=\"",
                       position: (246, 30),
                      },
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (247, 22),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "shell",
                           position: (247, 26),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "\"\ntags=\"",
                       position: (247, 32),
                      },
                      Interpolation {
                       expression: Variable {
                        identifier: "tagsStr",
                        position: (248, 21),
                       },
                      },
                      Raw {
                       content: "\"\nbuild-path=\"",
                       position: (248, 29),
                      },
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (249, 27),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "dataDir",
                           position: (249, 31),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/builds\"\nhooks-path=\"",
                       position: (249, 39),
                      },
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (250, 27),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "hooksPath",
                           position: (250, 31),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "\"\n",
                       position: (250, 41),
                      },
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (251, 15),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "extraConfig",
                           position: (251, 19),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "\nEOF\n",
                       position: (251, 31),
                      },
                     ],
                     position: (243, 16),
                    },
                   ],
                   position: (243, 14),
                  },
                  position: (232, 20),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "serviceConfig",
                    position: (255, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "ExecStart",
                       position: (256, 13),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (256, 28),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "package",
                           position: (256, 32),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/bin/buildkite-agent start --config ",
                       position: (256, 40),
                      },
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (256, 78),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "dataDir",
                           position: (256, 82),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/buildkite-agent.cfg",
                       position: (256, 90),
                      },
                     ],
                     position: (256, 25),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "User",
                       position: (257, 13),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "buildkite-agent-",
                       position: (257, 21),
                      },
                      Interpolation {
                       expression: Variable {
                        identifier: "name",
                        position: (257, 39),
                       },
                      },
                     ],
                     position: (257, 20),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "RestartSec",
                       position: (258, 13),
                      },
                     ],
                    },
                    to: Int {
                     value: 5,
                     position: (258, 26),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "Restart",
                       position: (259, 13),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "on-failure",
                       position: (259, 24),
                      },
                     ],
                     position: (259, 23),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "TimeoutSec",
                       position: (260, 13),
                      },
                     ],
                    },
                    to: Int {
                     value: 10,
                     position: (260, 26),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "TimeoutStopSec",
                       position: (262, 13),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "2 min",
                       position: (262, 31),
                      },
                     ],
                     position: (262, 30),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "KillMode",
                       position: (263, 13),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "mixed",
                       position: (263, 25),
                      },
                     ],
                     position: (263, 24),
                    },
                   },
                  ],
                  recursive: false,
                  position: (256, 11),
                 },
                },
               ],
               recursive: false,
               position: (221, 7),
              },
             },
            ],
            recursive: false,
            position: (219, 51),
           },
           position: (219, 46),
          },
          position: (219, 40),
         },
         position: (219, 39),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (268, 3),
        },
        Raw {
         content: "assertions",
         position: (268, 10),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mapAgents",
        position: (268, 23),
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "name",
          },
          definition: Function {
           argument: Simple {
            identifier: "cfg",
           },
           definition: List {
            elements: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "assertion",
                   position: (269, 9),
                  },
                 ],
                },
                to: BinaryOperation {
                 operator: LogicalOr,
                 operands: [
                  BinaryOperation {
                   operator: EqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (269, 21),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "hooksPath",
                        position: (269, 25),
                       },
                      ],
                     },
                     default: None,
                    },
                    Parentheses {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "hooksDir",
                       position: (269, 39),
                      },
                      arguments: [
                       Variable {
                        identifier: "cfg",
                        position: (269, 48),
                       },
                      ],
                     },
                     position: (269, 38),
                    },
                   ],
                   position: (269, 35),
                  },
                  FunctionApplication {
                   function: Variable {
                    identifier: "all",
                    position: (269, 56),
                   },
                   arguments: [
                    Parentheses {
                     expression: Function {
                      argument: Simple {
                       identifier: "v",
                      },
                      definition: BinaryOperation {
                       operator: EqualTo,
                       operands: [
                        Variable {
                         identifier: "v",
                         position: (269, 64),
                        },
                        Variable {
                         identifier: "null",
                         position: (269, 69),
                        },
                       ],
                       position: (269, 66),
                      },
                      position: (269, 61),
                     },
                     position: (269, 60),
                    },
                    Parentheses {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "attrValues",
                       position: (269, 76),
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (269, 87),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "hooks",
                           position: (269, 91),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                     },
                     position: (269, 75),
                    },
                   ],
                  },
                 ],
                 position: (269, 53),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "message",
                   position: (270, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Options `services.buildkite-agents.",
                   position: (271, 1),
                  },
                  Interpolation {
                   expression: Variable {
                    identifier: "name",
                    position: (271, 48),
                   },
                  },
                  Raw {
                   content: ".hooksPath' and\n`services.buildkite-agents.",
                   position: (271, 53),
                  },
                  Interpolation {
                   expression: Variable {
                    identifier: "name",
                    position: (272, 40),
                   },
                  },
                  Raw {
                   content: ".hooks.<name>' are mutually exclusive.\n",
                   position: (272, 45),
                  },
                 ],
                 position: (270, 19),
                },
               },
              ],
              recursive: false,
              position: (269, 7),
             },
            ],
            position: (268, 45),
           },
           position: (268, 40),
          },
          position: (268, 34),
         },
         position: (268, 33),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "imports",
         position: (277, 3),
        },
       ],
      },
      to: List {
       elements: [
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "mkRemovedOptionModule",
           position: (278, 6),
          },
          arguments: [
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "services",
                position: (278, 31),
               },
              ],
              position: (278, 30),
             },
             String {
              parts: [
               Raw {
                content: "buildkite-agent",
                position: (278, 42),
               },
              ],
              position: (278, 41),
             },
            ],
            position: (278, 28),
           },
           String {
            parts: [
             Raw {
              content: "services.buildkite-agent has been upgraded from version 2 to version 3 and moved to an attribute set at services.buildkite-agents. Please consult the 20.03 release notes for more information.",
              position: (278, 61),
             },
            ],
            position: (278, 60),
           },
          ],
         },
         position: (278, 5),
        },
       ],
       position: (277, 13),
      },
     },
    ],
    recursive: false,
    position: (192, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}