---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "collectd",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "unvalidated_conf",
        position: (8, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (8, 22),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeText",
          position: (8, 27),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "collectd-unvalidated.conf",
          position: (8, 38),
         },
        ],
       },
       String {
        parts: [
         Raw {
          content: "BaseDir \"",
          position: (9, 1),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (9, 16),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "dataDir",
              position: (9, 20),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\"\nAutoLoadPlugin ",
          position: (9, 28),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "boolToString",
            position: (10, 22),
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (10, 35),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "autoLoadPlugin",
                position: (10, 39),
               },
              ],
             },
             default: None,
            },
           ],
          },
         },
         Raw {
          content: "\nHostname \"",
          position: (10, 54),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "config",
            position: (11, 17),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "networking",
              position: (11, 24),
             },
             Raw {
              content: "hostName",
              position: (11, 35),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\"\n\nLoadPlugin syslog\n<Plugin \"syslog\">\n  LogLevel \"info\"\n  NotifyLevel \"OKAY\"\n</Plugin>\n\n",
          position: (11, 44),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "concatStrings",
            position: (19, 7),
           },
           arguments: [
            FunctionApplication {
             function: Variable {
              identifier: "mapAttrsToList",
              position: (19, 22),
             },
             arguments: [
              Function {
               argument: Some(
                "plugin",
               ),
               arguments: FunctionArguments {
                arguments: [],
                ellipsis: false,
               },
               definition: Function {
                argument: Some(
                 "pluginConfig",
                ),
                arguments: FunctionArguments {
                 arguments: [],
                 ellipsis: false,
                },
                definition: String {
                 parts: [
                  Raw {
                   content: "LoadPlugin ",
                   position: (20, 1),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "plugin",
                    position: (20, 20),
                   },
                  },
                  Raw {
                   content: "\n<Plugin \"",
                   position: (20, 27),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "plugin",
                    position: (21, 18),
                   },
                  },
                  Raw {
                   content: "\">\n",
                   position: (21, 25),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "pluginConfig",
                    position: (22, 9),
                   },
                  },
                  Raw {
                   content: "\n</Plugin>\n",
                   position: (22, 22),
                  },
                 ],
                },
                position: (19, 46),
               },
               position: (19, 38),
              },
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (24, 9),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "plugins",
                  position: (24, 13),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n\n",
          position: (24, 22),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "concatMapStrings",
            position: (26, 7),
           },
           arguments: [
            Function {
             argument: Some(
              "f",
             ),
             arguments: FunctionArguments {
              arguments: [],
              ellipsis: false,
             },
             definition: String {
              parts: [
               Raw {
                content: "Include \"",
                position: (27, 1),
               },
               Expression {
                expression: Variable {
                 identifier: "f",
                 position: (27, 18),
                },
               },
               Raw {
                content: "\"\n",
                position: (27, 20),
               },
              ],
             },
             position: (26, 25),
            },
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (28, 9),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "include",
                position: (28, 13),
               },
              ],
             },
             default: None,
            },
           ],
          },
         },
         Raw {
          content: "\n\n",
          position: (28, 21),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (30, 7),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "extraConfig",
              position: (30, 11),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n",
          position: (30, 23),
         },
        ],
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "conf",
        position: (33, 3),
       },
      ],
     },
     IfThenElse {
      predicate: PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (33, 13),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "validateConfig",
          position: (33, 17),
         },
        ],
       },
       default: None,
      },
      then: FunctionApplication {
       function: PropertyAccess {
        expression: Variable {
         identifier: "pkgs",
         position: (34, 5),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "runCommand",
           position: (34, 10),
          },
         ],
        },
        default: None,
       },
       arguments: [
        String {
         parts: [
          Raw {
           content: "collectd.conf",
           position: (34, 22),
          },
         ],
        },
        Map {
         bindings: [],
         recursive: false,
         position: (34, 37),
        },
        String {
         parts: [
          Raw {
           content: "echo testing ",
           position: (35, 1),
          },
          Expression {
           expression: Variable {
            identifier: "unvalidated_conf",
            position: (35, 22),
           },
          },
          Raw {
           content: "\n# collectd -t fails if BaseDir does not exist.\nsed '1s/^BaseDir.*$/BaseDir \".\"/' ",
           position: (35, 39),
          },
          Expression {
           expression: Variable {
            identifier: "unvalidated_conf",
            position: (37, 43),
           },
          },
          Raw {
           content: " > collectd.conf\n",
           position: (37, 60),
          },
          Expression {
           expression: Variable {
            identifier: "package",
            position: (38, 9),
           },
          },
          Raw {
           content: "/bin/collectd -t -C collectd.conf\ncp ",
           position: (38, 17),
          },
          Expression {
           expression: Variable {
            identifier: "unvalidated_conf",
            position: (39, 12),
           },
          },
          Raw {
           content: " $out\n",
           position: (39, 29),
          },
         ],
        },
       ],
      },
      else_: Variable {
       identifier: "unvalidated_conf",
       position: (40, 13),
      },
      position: (33, 10),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "package",
        position: (42, 3),
       },
      ],
     },
     IfThenElse {
      predicate: PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (43, 8),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "buildMinimalPackage",
          position: (43, 12),
         },
        ],
       },
       default: None,
      },
      then: Variable {
       identifier: "minimalPackage",
       position: (44, 10),
      },
      else_: PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (45, 10),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "package",
          position: (45, 14),
         },
        ],
       },
       default: None,
      },
      position: (43, 5),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "minimalPackage",
        position: (47, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (47, 20),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "package",
          position: (47, 24),
         },
         Raw {
          content: "override",
          position: (47, 32),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "enabledPlugins",
             position: (48, 5),
            },
           ],
          },
          BinaryOperation {
           operator: Concatenation,
           operands: [
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "syslog",
                 position: (48, 25),
                },
               ],
              },
             ],
             position: (48, 22),
            },
            FunctionApplication {
             function: PropertyAccess {
              expression: Variable {
               identifier: "builtins",
               position: (48, 38),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "attrNames",
                 position: (48, 47),
                },
               ],
              },
              default: None,
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (48, 57),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "plugins",
                  position: (48, 61),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ],
           position: (48, 35),
          },
         ),
        ],
        recursive: false,
        position: (47, 41),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (52, 3),
        },
        Raw {
         content: "services",
         position: (52, 11),
        },
        Raw {
         content: "collectd",
         position: (52, 20),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "types",
        position: (52, 36),
       },
       target: Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "enable",
             position: (53, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkEnableOption",
            position: (53, 14),
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: "collectd agent",
               position: (53, 30),
              },
             ],
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "validateConfig",
             position: (55, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (55, 22),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (56, 7),
                 },
                ],
               },
               Variable {
                identifier: "true",
                position: (56, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (57, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Validate the syntax of collectd configuration file at build time.\nDisable this if you use the Include directive on files unavailable in\nthe build sandbox, or when cross-compiling.\n",
                  position: (58, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (62, 7),
                 },
                ],
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (62, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "bool",
                   position: (62, 20),
                  },
                 ],
                },
                default: None,
               },
              ),
             ],
             recursive: false,
             position: (55, 31),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "package",
             position: (65, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (65, 15),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (66, 7),
                 },
                ],
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (66, 17),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "collectd",
                   position: (66, 22),
                  },
                 ],
                },
                default: None,
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "defaultText",
                  position: (67, 7),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "literalExpression",
                 position: (67, 21),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "pkgs.collectd",
                    position: (67, 40),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (68, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Which collectd package to use.\n",
                  position: (69, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (71, 7),
                 },
                ],
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (71, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "package",
                   position: (71, 20),
                  },
                 ],
                },
                default: None,
               },
              ),
             ],
             recursive: false,
             position: (65, 24),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "buildMinimalPackage",
             position: (74, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (74, 27),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (75, 7),
                 },
                ],
               },
               Variable {
                identifier: "false",
                position: (75, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (76, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Build a minimal collectd package with only the configured `services.collectd.plugins`\n",
                  position: (77, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (79, 7),
                 },
                ],
               },
               Variable {
                identifier: "bool",
                position: (79, 14),
               },
              ),
             ],
             recursive: false,
             position: (74, 36),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "user",
             position: (82, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (82, 12),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (83, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "collectd",
                  position: (83, 18),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (84, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "User under which to run collectd.\n",
                  position: (85, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (87, 7),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "nullOr",
                 position: (87, 14),
                },
                arguments: [
                 Variable {
                  identifier: "str",
                  position: (87, 21),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (82, 21),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "dataDir",
             position: (90, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (90, 15),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (91, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "/var/lib/collectd",
                  position: (91, 18),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (92, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Data directory for collectd agent.\n",
                  position: (93, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (95, 7),
                 },
                ],
               },
               Variable {
                identifier: "path",
                position: (95, 14),
               },
              ),
             ],
             recursive: false,
             position: (90, 24),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "autoLoadPlugin",
             position: (98, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (98, 22),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (99, 7),
                 },
                ],
               },
               Variable {
                identifier: "false",
                position: (99, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (100, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Enable plugin autoloading.\n",
                  position: (101, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (103, 7),
                 },
                ],
               },
               Variable {
                identifier: "bool",
                position: (103, 14),
               },
              ),
             ],
             recursive: false,
             position: (98, 31),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "include",
             position: (106, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (106, 15),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (107, 7),
                 },
                ],
               },
               List {
                elements: [],
                position: (107, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (108, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Additional paths to load config from.\n",
                  position: (109, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (111, 7),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "listOf",
                 position: (111, 14),
                },
                arguments: [
                 Variable {
                  identifier: "str",
                  position: (111, 21),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (106, 24),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "plugins",
             position: (114, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (114, 15),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (115, 7),
                 },
                ],
               },
               Map {
                bindings: [],
                recursive: false,
                position: (115, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "example",
                  position: (116, 7),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "cpu",
                     position: (116, 19),
                    },
                   ],
                  },
                  String {
                   parts: [],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "memory",
                     position: (116, 29),
                    },
                   ],
                  },
                  String {
                   parts: [],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "network",
                     position: (116, 42),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "Server 192.168.1.1 25826",
                     position: (116, 53),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (116, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (117, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Attribute set of plugin names to plugin config segments\n",
                  position: (118, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (120, 7),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "attrsOf",
                 position: (120, 14),
                },
                arguments: [
                 Variable {
                  identifier: "lines",
                  position: (120, 22),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (114, 24),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "extraConfig",
             position: (123, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (123, 19),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (124, 7),
                 },
                ],
               },
               String {
                parts: [],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (125, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Extra configuration for collectd.\n",
                  position: (126, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (128, 7),
                 },
                ],
               },
               Variable {
                identifier: "lines",
                position: (128, 14),
               },
              ),
             ],
             recursive: false,
             position: (123, 28),
            },
           ],
          },
         ),
        ],
        recursive: false,
        position: (52, 43),
       },
       position: (52, 31),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (133, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (133, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (133, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (133, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (134, 5),
             },
             Raw {
              content: "tmpfiles",
              position: (134, 13),
             },
             Raw {
              content: "rules",
              position: (134, 22),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "d '",
                position: (135, 8),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (135, 13),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "dataDir",
                    position: (135, 17),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "' - ",
                position: (135, 25),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (135, 31),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "user",
                    position: (135, 35),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - - -",
                position: (135, 40),
               },
              ],
             },
            ],
            position: (134, 30),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (138, 5),
             },
             Raw {
              content: "services",
              position: (138, 13),
             },
             Raw {
              content: "collectd",
              position: (138, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (139, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Collectd Monitoring Agent",
                 position: (139, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (140, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (140, 18),
                  },
                 ],
                },
               ],
               position: (140, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (141, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (141, 21),
                  },
                 ],
                },
               ],
               position: (141, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (143, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (144, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "package",
                     position: (144, 24),
                    },
                   },
                   Raw {
                    content: "/sbin/collectd -C ",
                    position: (144, 32),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "conf",
                     position: (144, 52),
                    },
                   },
                   Raw {
                    content: " -f",
                    position: (144, 57),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (145, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (145, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "user",
                     position: (145, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Restart",
                    position: (146, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "on-failure",
                    position: (146, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "RestartSec",
                    position: (147, 9),
                   },
                  ],
                 },
                 Int {
                  value: 3,
                  position: (147, 22),
                 },
                ),
               ],
               recursive: false,
               position: (143, 23),
              },
             ),
            ],
            recursive: false,
            position: (138, 33),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (151, 5),
             },
             Raw {
              content: "users",
              position: (151, 11),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (151, 19),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (151, 34),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "user",
                   position: (151, 38),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "collectd",
                  position: (151, 47),
                 },
                ],
               },
              ],
              position: (151, 43),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "collectd",
                   position: (152, 7),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "isSystemUser",
                      position: (153, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "true",
                    position: (153, 24),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "group",
                      position: (154, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "collectd",
                      position: (154, 18),
                     },
                    ],
                   },
                  ),
                 ],
                 recursive: false,
                 position: (152, 18),
                },
               ),
              ],
              recursive: false,
              position: (151, 58),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (158, 5),
             },
             Raw {
              content: "groups",
              position: (158, 11),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (158, 20),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (158, 35),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "user",
                   position: (158, 39),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "collectd",
                  position: (158, 48),
                 },
                ],
               },
              ],
              position: (158, 44),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "collectd",
                   position: (159, 7),
                  },
                 ],
                },
                Map {
                 bindings: [],
                 recursive: false,
                 position: (159, 18),
                },
               ),
              ],
              recursive: false,
              position: (158, 59),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (133, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (51, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}