---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "logrotate",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "pathOpts",
        position: (11, 3),
       },
      ],
     },
     Function {
      argument: None,
      arguments: FunctionArguments {
       arguments: [
        FunctionArgument {
         identifier: "name",
         default: None,
        },
       ],
       ellipsis: true,
      },
      definition: Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "options",
            position: (12, 5),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (13, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (13, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (14, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (14, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (14, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (15, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (15, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (16, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to enable log rotation for this path. This can be used to explicitly disable\nlogging that has been configured by NixOS.\n",
                   },
                  ],
                  position: (16, 23),
                 },
                ),
               ],
               recursive: false,
               position: (13, 25),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "name",
               position: (22, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (22, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (23, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (23, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (23, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "internal",
                    position: (24, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (24, 20),
                 },
                ),
               ],
               recursive: false,
               position: (22, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "path",
               position: (27, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (27, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (28, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (28, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "either",
                    position: (28, 28),
                   },
                   arguments: [
                    Variable {
                     identifier: "str",
                     position: (28, 35),
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "listOf",
                      position: (28, 40),
                     },
                     arguments: [
                      Variable {
                       identifier: "str",
                       position: (28, 47),
                      },
                     ],
                    },
                   ],
                  },
                  position: (28, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (29, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "name",
                  position: (29, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "defaultText",
                    position: (30, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "attribute name",
                   },
                  ],
                  position: (30, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (31, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The path to log files to be rotated.\nSpaces are allowed and normal shell quoting rules apply,\nwith ', \", and \\ characters supported.\n",
                   },
                  ],
                  position: (31, 23),
                 },
                ),
               ],
               recursive: false,
               position: (27, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "user",
               position: (38, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (38, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (39, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (39, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "nullOr",
                    position: (39, 28),
                   },
                   arguments: [
                    Variable {
                     identifier: "str",
                     position: (39, 35),
                    },
                   ],
                  },
                  position: (39, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (40, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (40, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (41, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The user account to use for rotation.\n",
                   },
                  ],
                  position: (41, 23),
                 },
                ),
               ],
               recursive: false,
               position: (38, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "group",
               position: (46, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (46, 15),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (47, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (47, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "nullOr",
                    position: (47, 28),
                   },
                   arguments: [
                    Variable {
                     identifier: "str",
                     position: (47, 35),
                    },
                   ],
                  },
                  position: (47, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (48, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (48, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (49, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The group to use for rotation.\n",
                   },
                  ],
                  position: (49, 23),
                 },
                ),
               ],
               recursive: false,
               position: (46, 24),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "frequency",
               position: (54, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (54, 19),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (55, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (55, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "enum",
                      position: (55, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   List {
                    elements: [
                     String {
                      parts: [
                       Raw {
                        content: "hourly",
                       },
                      ],
                      position: (55, 29),
                     },
                     String {
                      parts: [
                       Raw {
                        content: "daily",
                       },
                      ],
                      position: (55, 38),
                     },
                     String {
                      parts: [
                       Raw {
                        content: "weekly",
                       },
                      ],
                      position: (55, 46),
                     },
                     String {
                      parts: [
                       Raw {
                        content: "monthly",
                       },
                      ],
                      position: (55, 55),
                     },
                     String {
                      parts: [
                       Raw {
                        content: "yearly",
                       },
                      ],
                      position: (55, 65),
                     },
                    ],
                    position: (55, 27),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (56, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "daily",
                   },
                  ],
                  position: (56, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (57, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "How often to rotate the logs.\n",
                   },
                  ],
                  position: (57, 23),
                 },
                ),
               ],
               recursive: false,
               position: (54, 28),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "keep",
               position: (62, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (62, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (63, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (63, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "int",
                     position: (63, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (64, 9),
                   },
                  ],
                 },
                 Int {
                  value: 20,
                  position: (64, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (65, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "How many rotations to keep.\n",
                   },
                  ],
                  position: (65, 23),
                 },
                ),
               ],
               recursive: false,
               position: (62, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "extraConfig",
               position: (70, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (70, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (71, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (71, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "lines",
                     position: (71, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (72, 9),
                   },
                  ],
                 },
                 String {
                  parts: [],
                  position: (72, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (73, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Extra logrotate config options for this path. Refer to\n<link xlink:href=\"https://linux.die.net/man/8/logrotate\"/> for details.\n",
                   },
                  ],
                  position: (73, 23),
                 },
                ),
               ],
               recursive: false,
               position: (70, 30),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "priority",
               position: (79, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (79, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (80, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (80, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "int",
                     position: (80, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (81, 9),
                   },
                  ],
                 },
                 Int {
                  value: 1000,
                  position: (81, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (82, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Order of this logrotate block in relation to the others. The semantics are\nthe same as with `lib.mkOrder`. Smaller values have a greater priority.\n",
                   },
                  ],
                  position: (82, 23),
                 },
                ),
               ],
               recursive: false,
               position: (79, 27),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (12, 15),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "config",
            position: (89, 5),
           },
           Raw {
            content: "name",
            position: (89, 12),
           },
          ],
         },
         Variable {
          identifier: "name",
          position: (89, 19),
         },
        ),
       ],
       recursive: false,
       position: (11, 29),
      },
      position: (11, 14),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "generateLine",
        position: (92, 3),
       },
      ],
     },
     Function {
      argument: Some(
       "n",
      ),
      arguments: FunctionArguments {
       arguments: [],
       ellipsis: false,
      },
      definition: Function {
       argument: Some(
        "v",
       ),
       arguments: FunctionArguments {
        arguments: [],
        ellipsis: false,
       },
       definition: IfThenElse {
        predicate: BinaryOperation {
         operator: LogicalOr,
         operands: [
          FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "builtins",
             position: (93, 8),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "elem",
               position: (93, 17),
              },
             ],
            },
            default: None,
           },
           arguments: [
            Variable {
             identifier: "n",
             position: (93, 22),
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "files",
                },
               ],
               position: (93, 26),
              },
              String {
               parts: [
                Raw {
                 content: "priority",
                },
               ],
               position: (93, 34),
              },
              String {
               parts: [
                Raw {
                 content: "enable",
                },
               ],
               position: (93, 45),
              },
              String {
               parts: [
                Raw {
                 content: "global",
                },
               ],
               position: (93, 54),
              },
             ],
             position: (93, 24),
            },
           ],
          },
          BinaryOperation {
           operator: EqualTo,
           operands: [
            Variable {
             identifier: "v",
             position: (93, 68),
            },
            Variable {
             identifier: "null",
             position: (93, 73),
            },
           ],
           position: (93, 70),
          },
         ],
         position: (93, 65),
        },
        then: Variable {
         identifier: "null",
         position: (93, 83),
        },
        else_: IfThenElse {
         predicate: FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "builtins",
            position: (94, 13),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "elem",
              position: (94, 22),
             },
            ],
           },
           default: None,
          },
          arguments: [
           Variable {
            identifier: "n",
            position: (94, 27),
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "extraConfig",
               },
              ],
              position: (94, 31),
             },
             String {
              parts: [
               Raw {
                content: "frequency",
               },
              ],
              position: (94, 45),
             },
            ],
            position: (94, 29),
           },
          ],
         },
         then: String {
          parts: [
           Expression {
            expression: Variable {
             identifier: "v",
             position: (94, 67),
            },
           },
           Raw {
            content: "\n",
           },
          ],
          position: (94, 64),
         },
         else_: IfThenElse {
          predicate: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "builtins",
             position: (95, 13),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "elem",
               position: (95, 22),
              },
             ],
            },
            default: None,
           },
           arguments: [
            Variable {
             identifier: "n",
             position: (95, 27),
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "firstaction",
                },
               ],
               position: (95, 31),
              },
              String {
               parts: [
                Raw {
                 content: "lastaction",
                },
               ],
               position: (95, 45),
              },
              String {
               parts: [
                Raw {
                 content: "prerotate",
                },
               ],
               position: (95, 58),
              },
              String {
               parts: [
                Raw {
                 content: "postrotate",
                },
               ],
               position: (95, 70),
              },
              String {
               parts: [
                Raw {
                 content: "preremove",
                },
               ],
               position: (95, 83),
              },
             ],
             position: (95, 29),
            },
           ],
          },
          then: String {
           parts: [
            Expression {
             expression: Variable {
              identifier: "n",
              position: (96, 18),
             },
            },
            Raw {
             content: "\n    ",
            },
            Expression {
             expression: Variable {
              identifier: "v",
              position: (96, 28),
             },
            },
            Raw {
             content: "\n  endscript\n",
            },
           ],
           position: (96, 15),
          },
          else_: IfThenElse {
           predicate: FunctionApplication {
            function: Variable {
             identifier: "isInt",
             position: (97, 13),
            },
            arguments: [
             Variable {
              identifier: "v",
              position: (97, 19),
             },
            ],
           },
           then: String {
            parts: [
             Expression {
              expression: Variable {
               identifier: "n",
               position: (97, 29),
              },
             },
             Raw {
              content: " ",
             },
             Expression {
              expression: FunctionApplication {
               function: Variable {
                identifier: "toString",
                position: (97, 34),
               },
               arguments: [
                Variable {
                 identifier: "v",
                 position: (97, 43),
                },
               ],
              },
             },
             Raw {
              content: "\n",
             },
            ],
            position: (97, 26),
           },
           else_: IfThenElse {
            predicate: BinaryOperation {
             operator: EqualTo,
             operands: [
              Variable {
               identifier: "v",
               position: (98, 13),
              },
              Variable {
               identifier: "true",
               position: (98, 18),
              },
             ],
             position: (98, 15),
            },
            then: String {
             parts: [
              Expression {
               expression: Variable {
                identifier: "n",
                position: (98, 31),
               },
              },
              Raw {
               content: "\n",
              },
             ],
             position: (98, 28),
            },
            else_: IfThenElse {
             predicate: BinaryOperation {
              operator: EqualTo,
              operands: [
               Variable {
                identifier: "v",
                position: (99, 13),
               },
               Variable {
                identifier: "false",
                position: (99, 18),
               },
              ],
              position: (99, 15),
             },
             then: String {
              parts: [
               Raw {
                content: "no",
               },
               Expression {
                expression: Variable {
                 identifier: "n",
                 position: (99, 34),
                },
               },
               Raw {
                content: "\n",
               },
              ],
              position: (99, 29),
             },
             else_: String {
              parts: [
               Expression {
                expression: Variable {
                 identifier: "n",
                 position: (100, 13),
                },
               },
               Raw {
                content: " ",
               },
               Expression {
                expression: Variable {
                 identifier: "v",
                 position: (100, 18),
                },
               },
               Raw {
                content: "\n",
               },
              ],
              position: (100, 10),
             },
             position: (99, 10),
            },
            position: (98, 10),
           },
           position: (97, 10),
          },
          position: (95, 10),
         },
         position: (94, 10),
        },
        position: (93, 5),
       },
       position: (92, 21),
      },
      position: (92, 18),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "generateSection",
        position: (101, 3),
       },
      ],
     },
     Function {
      argument: Some(
       "indent",
      ),
      arguments: FunctionArguments {
       arguments: [],
       ellipsis: false,
      },
      definition: Function {
       argument: Some(
        "settings",
       ),
       arguments: FunctionArguments {
        arguments: [],
        ellipsis: false,
       },
       definition: FunctionApplication {
        function: Variable {
         identifier: "concatStringsSep",
         position: (101, 39),
        },
        arguments: [
         FunctionApplication {
          function: Variable {
           identifier: "fixedWidthString",
           position: (101, 57),
          },
          arguments: [
           Variable {
            identifier: "indent",
            position: (101, 74),
           },
           String {
            parts: [
             Raw {
              content: " ",
             },
            ],
            position: (101, 81),
           },
           String {
            parts: [],
            position: (101, 85),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "filter",
           position: (102, 5),
          },
          arguments: [
           Function {
            argument: Some(
             "x",
            ),
            arguments: FunctionArguments {
             arguments: [],
             ellipsis: false,
            },
            definition: BinaryOperation {
             operator: NotEqualTo,
             operands: [
              Variable {
               identifier: "x",
               position: (102, 16),
              },
              Variable {
               identifier: "null",
               position: (102, 21),
              },
             ],
             position: (102, 18),
            },
            position: (102, 13),
           },
           FunctionApplication {
            function: Variable {
             identifier: "mapAttrsToList",
             position: (102, 28),
            },
            arguments: [
             Variable {
              identifier: "generateLine",
              position: (102, 43),
             },
             Variable {
              identifier: "settings",
              position: (102, 56),
             },
            ],
           },
          ],
         },
        ],
       },
       position: (101, 29),
      },
      position: (101, 21),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "mkConf",
        position: (106, 3),
       },
      ],
     },
     Function {
      argument: Some(
       "settings",
      ),
      arguments: FunctionArguments {
       arguments: [],
       ellipsis: false,
      },
      definition: IfThenElse {
       predicate: PropertyAccess {
        expression: Variable {
         identifier: "settings",
         position: (107, 8),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "global",
           position: (107, 17),
          },
         ],
        },
        default: Some(
         Variable {
          identifier: "false",
          position: (107, 27),
         },
        ),
       },
       then: FunctionApplication {
        function: Variable {
         identifier: "generateSection",
         position: (107, 38),
        },
        arguments: [
         Int {
          value: 0,
          position: (107, 54),
         },
         Variable {
          identifier: "settings",
          position: (107, 56),
         },
        ],
       },
       else_: String {
        parts: [
         Raw {
          content: "",
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "concatMapStringsSep",
            position: (109, 9),
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: "\n",
              },
             ],
             position: (109, 29),
            },
            Function {
             argument: Some(
              "files",
             ),
             arguments: FunctionArguments {
              arguments: [],
              ellipsis: false,
             },
             definition: String {
              parts: [
               Raw {
                content: "\"",
               },
               Expression {
                expression: Variable {
                 identifier: "files",
                 position: (109, 47),
                },
               },
               Raw {
                content: "\"",
               },
              ],
              position: (109, 42),
             },
             position: (109, 35),
            },
            FunctionApplication {
             function: Variable {
              identifier: "toList",
              position: (109, 59),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "settings",
                position: (109, 66),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "files",
                  position: (109, 75),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: " {\n ",
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "generateSection",
            position: (110, 11),
           },
           arguments: [
            Int {
             value: 2,
             position: (110, 27),
            },
            Variable {
             identifier: "settings",
             position: (110, 29),
            },
           ],
          },
         },
         Raw {
          content: "}\n",
         },
        ],
        position: (108, 10),
       },
       position: (107, 5),
      },
      position: (106, 12),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "mapPathOptToSetting",
        position: (114, 3),
       },
      ],
     },
     Function {
      argument: Some(
       "n",
      ),
      arguments: FunctionArguments {
       arguments: [],
       ellipsis: false,
      },
      definition: Function {
       argument: Some(
        "v",
       ),
       arguments: FunctionArguments {
        arguments: [],
        ellipsis: false,
       },
       definition: IfThenElse {
        predicate: BinaryOperation {
         operator: EqualTo,
         operands: [
          Variable {
           identifier: "n",
           position: (115, 8),
          },
          String {
           parts: [
            Raw {
             content: "keep",
            },
           ],
           position: (115, 13),
          },
         ],
         position: (115, 10),
        },
        then: FunctionApplication {
         function: Variable {
          identifier: "nameValuePair",
          position: (115, 25),
         },
         arguments: [
          String {
           parts: [
            Raw {
             content: "rotate",
            },
           ],
           position: (115, 39),
          },
          Variable {
           identifier: "v",
           position: (115, 48),
          },
         ],
        },
        else_: IfThenElse {
         predicate: BinaryOperation {
          operator: EqualTo,
          operands: [
           Variable {
            identifier: "n",
            position: (116, 13),
           },
           String {
            parts: [
             Raw {
              content: "path",
             },
            ],
            position: (116, 18),
           },
          ],
          position: (116, 15),
         },
         then: FunctionApplication {
          function: Variable {
           identifier: "nameValuePair",
           position: (116, 30),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "files",
             },
            ],
            position: (116, 44),
           },
           Variable {
            identifier: "v",
            position: (116, 52),
           },
          ],
         },
         else_: FunctionApplication {
          function: Variable {
           identifier: "nameValuePair",
           position: (117, 10),
          },
          arguments: [
           Variable {
            identifier: "n",
            position: (117, 24),
           },
           Variable {
            identifier: "v",
            position: (117, 26),
           },
          ],
         },
         position: (116, 10),
        },
        position: (115, 5),
       },
       position: (114, 28),
      },
      position: (114, 25),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "mapPathsToSettings",
        position: (119, 3),
       },
      ],
     },
     Function {
      argument: Some(
       "path",
      ),
      arguments: FunctionArguments {
       arguments: [],
       ellipsis: false,
      },
      definition: Function {
       argument: Some(
        "pathOpts",
       ),
       arguments: FunctionArguments {
        arguments: [],
        ellipsis: false,
       },
       definition: FunctionApplication {
        function: Variable {
         identifier: "nameValuePair",
         position: (120, 5),
        },
        arguments: [
         Variable {
          identifier: "path",
          position: (120, 19),
         },
         FunctionApplication {
          function: Variable {
           identifier: "filterAttrs",
           position: (121, 7),
          },
          arguments: [
           Function {
            argument: Some(
             "n",
            ),
            arguments: FunctionArguments {
             arguments: [],
             ellipsis: false,
            },
            definition: Function {
             argument: Some(
              "v",
             ),
             arguments: FunctionArguments {
              arguments: [],
              ellipsis: false,
             },
             definition: BinaryOperation {
              operator: LogicalAnd,
              operands: [
               UnaryOperation {
                operator: Not,
                operand: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "builtins",
                   position: (121, 28),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "elem",
                     position: (121, 37),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  Variable {
                   identifier: "n",
                   position: (121, 42),
                  },
                  List {
                   elements: [
                    String {
                     parts: [
                      Raw {
                       content: "user",
                      },
                     ],
                     position: (121, 46),
                    },
                    String {
                     parts: [
                      Raw {
                       content: "group",
                      },
                     ],
                     position: (121, 53),
                    },
                    String {
                     parts: [
                      Raw {
                       content: "name",
                      },
                     ],
                     position: (121, 61),
                    },
                   ],
                   position: (121, 44),
                  },
                 ],
                },
                position: (121, 26),
               },
               BinaryOperation {
                operator: NotEqualTo,
                operands: [
                 Variable {
                  identifier: "v",
                  position: (121, 73),
                 },
                 String {
                  parts: [],
                  position: (121, 78),
                 },
                ],
                position: (121, 75),
               },
              ],
              position: (121, 70),
             },
             position: (121, 23),
            },
            position: (121, 20),
           },
           BinaryOperation {
            operator: Update,
            operands: [
             FunctionApplication {
              function: Variable {
               identifier: "mapAttrs'",
               position: (122, 10),
              },
              arguments: [
               Variable {
                identifier: "mapPathOptToSetting",
                position: (122, 20),
               },
               Variable {
                identifier: "pathOpts",
                position: (122, 40),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "su",
                   position: (124, 11),
                  },
                 ],
                },
                IfThenElse {
                 predicate: BinaryOperation {
                  operator: NotEqualTo,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "pathOpts",
                     position: (125, 16),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "user",
                       position: (125, 25),
                      },
                     ],
                    },
                    default: None,
                   },
                   Variable {
                    identifier: "null",
                    position: (125, 33),
                   },
                  ],
                  position: (125, 30),
                 },
                 then: String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pathOpts",
                      position: (126, 21),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "user",
                        position: (126, 30),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: " ",
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pathOpts",
                      position: (126, 38),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "group",
                        position: (126, 47),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                  position: (126, 18),
                 },
                 else_: Variable {
                  identifier: "null",
                  position: (127, 18),
                 },
                 position: (125, 13),
                },
               ),
              ],
              recursive: false,
              position: (123, 9),
             },
            ],
            position: (122, 50),
           },
          ],
         },
        ],
       },
       position: (119, 30),
      },
      position: (119, 24),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "settings",
        position: (132, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "sortProperties",
       position: (132, 14),
      },
      arguments: [
       FunctionApplication {
        function: Variable {
         identifier: "attrValues",
         position: (132, 30),
        },
        arguments: [
         FunctionApplication {
          function: Variable {
           identifier: "filterAttrs",
           position: (132, 42),
          },
          arguments: [
           Function {
            argument: Some(
             "_",
            ),
            arguments: FunctionArguments {
             arguments: [],
             ellipsis: false,
            },
            definition: Function {
             argument: Some(
              "settings",
             ),
             arguments: FunctionArguments {
              arguments: [],
              ellipsis: false,
             },
             definition: PropertyAccess {
              expression: Variable {
               identifier: "settings",
               position: (132, 68),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "enable",
                 position: (132, 77),
                },
               ],
              },
              default: None,
             },
             position: (132, 58),
            },
            position: (132, 55),
           },
           FunctionApplication {
            function: Variable {
             identifier: "foldAttrs",
             position: (133, 5),
            },
            arguments: [
             Variable {
              identifier: "recursiveUpdate",
              position: (133, 15),
             },
             Map {
              bindings: [],
              recursive: false,
              position: (133, 31),
             },
             List {
              elements: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "header",
                     position: (135, 9),
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (136, 11),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (136, 20),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "missingok",
                        position: (137, 11),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (137, 23),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "notifempty",
                        position: (138, 11),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (138, 24),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "frequency",
                        position: (139, 11),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "weekly",
                       },
                      ],
                      position: (139, 23),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "rotate",
                        position: (140, 11),
                       },
                      ],
                     },
                     Int {
                      value: 4,
                      position: (140, 20),
                     },
                    ),
                   ],
                   recursive: false,
                   position: (135, 18),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "extraConfig",
                     position: (143, 9),
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (144, 11),
                       },
                      ],
                     },
                     BinaryOperation {
                      operator: NotEqualTo,
                      operands: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (144, 21),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "extraConfig",
                           position: (144, 25),
                          },
                         ],
                        },
                        default: None,
                       },
                       String {
                        parts: [],
                        position: (144, 40),
                       },
                      ],
                      position: (144, 37),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "global",
                        position: (145, 11),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (145, 20),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "extraConfig",
                        position: (146, 11),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (146, 25),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "extraConfig",
                         position: (146, 29),
                        },
                       ],
                      },
                      default: None,
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "priority",
                        position: (147, 11),
                       },
                      ],
                     },
                     Int {
                      value: 101,
                      position: (147, 22),
                     },
                    ),
                   ],
                   recursive: false,
                   position: (143, 23),
                  },
                 ),
                ],
                recursive: false,
                position: (134, 7),
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mapAttrs'",
                 position: (150, 8),
                },
                arguments: [
                 Variable {
                  identifier: "mapPathsToSettings",
                  position: (150, 18),
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (150, 37),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "paths",
                     position: (150, 41),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (151, 7),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "settings",
                   position: (151, 11),
                  },
                 ],
                },
                default: None,
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "header",
                     position: (152, 9),
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "global",
                        position: (152, 20),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (152, 29),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "priority",
                        position: (152, 35),
                       },
                      ],
                     },
                     Int {
                      value: 100,
                      position: (152, 46),
                     },
                    ),
                   ],
                   recursive: false,
                   position: (152, 18),
                  },
                 ),
                ],
                recursive: false,
                position: (152, 7),
               },
              ],
              position: (133, 35),
             },
            ],
           },
          ],
         },
        ],
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configFile",
        position: (155, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (155, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeTextFile",
          position: (155, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "name",
             position: (156, 5),
            },
           ],
          },
          String {
           parts: [
            Raw {
             content: "logrotate.conf",
            },
           ],
           position: (156, 12),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "text",
             position: (157, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "concatStringsSep",
            position: (157, 12),
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: "\n",
              },
             ],
             position: (157, 29),
            },
            FunctionApplication {
             function: Variable {
              identifier: "map",
              position: (158, 7),
             },
             arguments: [
              Variable {
               identifier: "mkConf",
               position: (158, 11),
              },
              Variable {
               identifier: "settings",
               position: (158, 18),
              },
             ],
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "checkPhase",
             position: (160, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "optionalString",
            position: (160, 18),
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (160, 33),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "checkConfig",
                position: (160, 37),
               },
              ],
             },
             default: None,
            },
            String {
             parts: [
              Raw {
               content: "# logrotate --debug also checks that users specified in config\n# file exist, but we only have sandboxed users here so brown these\n# out. according to man page that means su, create and createolddir.\n# files required to exist also won't be present, so missingok is forced.\nuser=$(",
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (165, 16),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "coreutils",
                   position: (165, 21),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "/bin/id -un)\ngroup=$(",
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (166, 17),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "coreutils",
                   position: (166, 22),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "/bin/id -gn)\nsed -e \"s/\\bsu\\s.*/su $user $group/\" \\\n    -e \"s/\\b\\(create\\s\\+[0-9]*\\s*\\|createolddir\\s\\+[0-9]*\\s\\+\\).*/\\1$user $group/\" \\\n    -e \"1imissingok\" -e \"s/\\bnomissingok\\b//\" \\\n    $out > /tmp/logrotate.conf\n# Since this makes for very verbose builds only show real error.\n# There is no way to control log level, but logrotate hardcodes\n# 'error:' at common log level, so we can use grep, taking care\n# to keep error codes\nset -o pipefail\nif ! ",
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (176, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "logrotate",
                   position: (176, 19),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "/sbin/logrotate --debug /tmp/logrotate.conf 2>&1 \\\n    | ( ! grep \"error:\" ) > /tmp/logrotate-error; then\n        echo \"Logrotate configuration check failed.\"\n        echo \"The failing configuration (after adjustments to pass tests in sandbox) was:\"\n        printf \"%s\\n\" \"-------\"\n        cat /tmp/logrotate.conf\n        printf \"%s\\n\" \"-------\"\n        echo \"The error reported by logrotate was as follow:\"\n        printf \"%s\\n\" \"-------\"\n        cat /tmp/logrotate-error\n        printf \"%s\\n\" \"-------\"\n        echo \"You can disable this check with services.logrotate.checkConfig = false,\"\n        echo \"but if you think it should work please report this failure along with\"\n        echo \"the config file being tested!\"\n        false\nfi\n",
              },
             ],
             position: (160, 49),
            },
           ],
          },
         ),
        ],
        recursive: false,
        position: (155, 35),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "mailOption",
        position: (195, 3),
       },
      ],
     },
     IfThenElse {
      predicate: FunctionApplication {
       function: Variable {
        identifier: "foldr",
        position: (196, 8),
       },
       arguments: [
        Function {
         argument: Some(
          "n",
         ),
         arguments: FunctionArguments {
          arguments: [],
          ellipsis: false,
         },
         definition: Function {
          argument: Some(
           "a",
          ),
          arguments: FunctionArguments {
           arguments: [],
           ellipsis: false,
          },
          definition: BinaryOperation {
           operator: LogicalOr,
           operands: [
            Variable {
             identifier: "a",
             position: (196, 21),
            },
            HasProperty {
             expression: Variable {
              identifier: "n",
              position: (196, 26),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "mail",
                position: (196, 30),
               },
              ],
             },
             position: (196, 28),
            },
           ],
           position: (196, 23),
          },
          position: (196, 18),
         },
         position: (196, 15),
        },
        Variable {
         identifier: "false",
         position: (196, 36),
        },
        FunctionApplication {
         function: Variable {
          identifier: "attrValues",
          position: (196, 43),
         },
         arguments: [
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (196, 54),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "settings",
              position: (196, 58),
             },
            ],
           },
           default: None,
          },
         ],
        },
       ],
      },
      then: String {
       parts: [
        Raw {
         content: "--mail=",
        },
        Expression {
         expression: PropertyAccess {
          expression: Variable {
           identifier: "pkgs",
           position: (197, 20),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "mailutils",
             position: (197, 25),
            },
           ],
          },
          default: None,
         },
        },
        Raw {
         content: "/bin/mail",
        },
       ],
       position: (197, 10),
      },
      else_: String {
       parts: [],
       position: (198, 10),
      },
      position: (196, 5),
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "imports",
         position: (201, 3),
        },
       ],
      },
      List {
       elements: [
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (202, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
              },
             ],
             position: (202, 30),
            },
            String {
             parts: [
              Raw {
               content: "logrotate",
              },
             ],
             position: (202, 41),
            },
            String {
             parts: [
              Raw {
               content: "config",
              },
             ],
             position: (202, 53),
            },
           ],
           position: (202, 28),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
              },
             ],
             position: (202, 66),
            },
            String {
             parts: [
              Raw {
               content: "logrotate",
              },
             ],
             position: (202, 77),
            },
            String {
             parts: [
              Raw {
               content: "extraConfig",
              },
             ],
             position: (202, 89),
            },
           ],
           position: (202, 64),
          },
         ],
        },
       ],
       position: (201, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (205, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (206, 5),
           },
           Raw {
            content: "logrotate",
            position: (206, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (207, 7),
              },
             ],
            },
            BinaryOperation {
             operator: Update,
             operands: [
              FunctionApplication {
               function: Variable {
                identifier: "mkEnableOption",
                position: (207, 16),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "the logrotate systemd service",
                  },
                 ],
                 position: (207, 31),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (208, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "foldr",
                   position: (208, 19),
                  },
                  arguments: [
                   Function {
                    argument: Some(
                     "n",
                    ),
                    arguments: FunctionArguments {
                     arguments: [],
                     ellipsis: false,
                    },
                    definition: Function {
                     argument: Some(
                      "a",
                     ),
                     arguments: FunctionArguments {
                      arguments: [],
                      ellipsis: false,
                     },
                     definition: BinaryOperation {
                      operator: LogicalOr,
                      operands: [
                       Variable {
                        identifier: "a",
                        position: (208, 32),
                       },
                       PropertyAccess {
                        expression: Variable {
                         identifier: "n",
                         position: (208, 37),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "enable",
                           position: (208, 39),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                      position: (208, 34),
                     },
                     position: (208, 29),
                    },
                    position: (208, 26),
                   },
                   Variable {
                    identifier: "false",
                    position: (208, 47),
                   },
                   FunctionApplication {
                    function: Variable {
                     identifier: "attrValues",
                     position: (208, 54),
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (208, 65),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "settings",
                         position: (208, 69),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "defaultText",
                    position: (209, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (209, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "cfg.settings != {}",
                     },
                    ],
                    position: (209, 41),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (207, 66),
              },
             ],
             position: (207, 63),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "settings",
               position: (212, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (212, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (213, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (213, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (214, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "logrotate freeform settings: each attribute here will define its own section,\nordered by priority, which can either define files to rotate with their settings\nor settings common to all further files settings.\nRefer to <link xlink:href=\"https://linux.die.net/man/8/logrotate\"/> for details.\n",
                   },
                  ],
                  position: (214, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (220, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (220, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "attrsOf",
                      position: (220, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   FunctionApplication {
                    function: PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (220, 31),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "submodule",
                        position: (220, 37),
                       },
                      ],
                     },
                     default: None,
                    },
                    arguments: [
                     Function {
                      argument: None,
                      arguments: FunctionArguments {
                       arguments: [
                        FunctionArgument {
                         identifier: "name",
                         default: None,
                        },
                       ],
                       ellipsis: true,
                      },
                      definition: Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "freeformType",
                            position: (221, 11),
                           },
                          ],
                         },
                         With {
                          expression: Variable {
                           identifier: "types",
                           position: (221, 31),
                          },
                          target: FunctionApplication {
                           function: Variable {
                            identifier: "attrsOf",
                            position: (221, 38),
                           },
                           arguments: [
                            FunctionApplication {
                             function: Variable {
                              identifier: "nullOr",
                              position: (221, 47),
                             },
                             arguments: [
                              FunctionApplication {
                               function: Variable {
                                identifier: "oneOf",
                                position: (221, 55),
                               },
                               arguments: [
                                List {
                                 elements: [
                                  Variable {
                                   identifier: "int",
                                   position: (221, 63),
                                  },
                                  Variable {
                                   identifier: "bool",
                                   position: (221, 67),
                                  },
                                  Variable {
                                   identifier: "str",
                                   position: (221, 72),
                                  },
                                 ],
                                 position: (221, 61),
                                },
                               ],
                              },
                             ],
                            },
                           ],
                          },
                          position: (221, 26),
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "options",
                            position: (223, 11),
                           },
                          ],
                         },
                         Map {
                          bindings: [
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "enable",
                               position: (224, 13),
                              },
                             ],
                            },
                            BinaryOperation {
                             operator: Update,
                             operands: [
                              FunctionApplication {
                               function: Variable {
                                identifier: "mkEnableOption",
                                position: (224, 22),
                               },
                               arguments: [
                                String {
                                 parts: [
                                  Raw {
                                   content: "setting individual kill switch",
                                  },
                                 ],
                                 position: (224, 37),
                                },
                               ],
                              },
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (225, 15),
                                   },
                                  ],
                                 },
                                 Variable {
                                  identifier: "true",
                                  position: (225, 25),
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (224, 73),
                              },
                             ],
                             position: (224, 70),
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "global",
                               position: (228, 13),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (228, 22),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (229, 15),
                                   },
                                  ],
                                 },
                                 PropertyAccess {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (229, 22),
                                  },
                                  attribute_path: AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "bool",
                                     position: (229, 28),
                                    },
                                   ],
                                  },
                                  default: None,
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (230, 15),
                                   },
                                  ],
                                 },
                                 Variable {
                                  identifier: "false",
                                  position: (230, 25),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (231, 15),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "Whether this setting is a global option or not: set to have these\nsettings apply to all files settings with a higher priority.\n",
                                   },
                                  ],
                                  position: (231, 29),
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (228, 31),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "files",
                               position: (236, 13),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (236, 21),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (237, 15),
                                   },
                                  ],
                                 },
                                 With {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (237, 27),
                                  },
                                  target: FunctionApplication {
                                   function: Variable {
                                    identifier: "either",
                                    position: (237, 34),
                                   },
                                   arguments: [
                                    Variable {
                                     identifier: "str",
                                     position: (237, 41),
                                    },
                                    FunctionApplication {
                                     function: Variable {
                                      identifier: "listOf",
                                      position: (237, 46),
                                     },
                                     arguments: [
                                      Variable {
                                       identifier: "str",
                                       position: (237, 53),
                                      },
                                     ],
                                    },
                                   ],
                                  },
                                  position: (237, 22),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (238, 15),
                                   },
                                  ],
                                 },
                                 Variable {
                                  identifier: "name",
                                  position: (238, 25),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "defaultText",
                                    position: (239, 15),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "The attrset name if not specified\n",
                                   },
                                  ],
                                  position: (239, 29),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (242, 15),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "Single or list of files for which rules are defined.\nThe files are quoted with double-quotes in logrotate configuration,\nso globs and spaces are supported.\nNote this setting is ignored if globals is true.\n",
                                   },
                                  ],
                                  position: (242, 29),
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (236, 30),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "frequency",
                               position: (250, 13),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (250, 25),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (251, 15),
                                   },
                                  ],
                                 },
                                 FunctionApplication {
                                  function: PropertyAccess {
                                   expression: Variable {
                                    identifier: "types",
                                    position: (251, 22),
                                   },
                                   attribute_path: AttributePath {
                                    attributes: [
                                     Raw {
                                      content: "nullOr",
                                      position: (251, 28),
                                     },
                                    ],
                                   },
                                   default: None,
                                  },
                                  arguments: [
                                   PropertyAccess {
                                    expression: Variable {
                                     identifier: "types",
                                     position: (251, 35),
                                    },
                                    attribute_path: AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "str",
                                       position: (251, 41),
                                      },
                                     ],
                                    },
                                    default: None,
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (252, 15),
                                   },
                                  ],
                                 },
                                 Variable {
                                  identifier: "null",
                                  position: (252, 25),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (253, 15),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "How often to rotate the logs. Defaults to previously set global setting,\nwhich itself defauts to weekly.\n",
                                   },
                                  ],
                                  position: (253, 29),
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (250, 34),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "priority",
                               position: (259, 13),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (259, 24),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (260, 15),
                                   },
                                  ],
                                 },
                                 PropertyAccess {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (260, 22),
                                  },
                                  attribute_path: AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "int",
                                     position: (260, 28),
                                    },
                                   ],
                                  },
                                  default: None,
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (261, 15),
                                   },
                                  ],
                                 },
                                 Int {
                                  value: 1000,
                                  position: (261, 25),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (262, 15),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "Order of this logrotate block in relation to the others. The semantics are\nthe same as with `lib.mkOrder`. Smaller values are inserted first.\n",
                                   },
                                  ],
                                  position: (262, 29),
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (259, 33),
                              },
                             ],
                            },
                           ),
                          ],
                          recursive: false,
                          position: (223, 21),
                         },
                        ),
                       ],
                       recursive: false,
                       position: (220, 63),
                      },
                      position: (220, 48),
                     },
                    ],
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (212, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "configFile",
               position: (272, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (272, 20),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (273, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (273, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "path",
                     position: (273, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (274, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "configFile",
                  position: (274, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "defaultText",
                    position: (275, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "A configuration file automatically generated by NixOS.\n",
                   },
                  ],
                  position: (275, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (278, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Override the configuration file used by MySQL. By default,\nNixOS generates one automatically from <xref linkend=\"opt-services.logrotate.settings\"/>.\n",
                   },
                  ],
                  position: (278, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (282, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (282, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "pkgs.writeText \"logrotate.conf\" ",
                     },
                     Raw {
                      content: "''",
                     },
                     Raw {
                      content: "\n  missingok\n  \"/var/log/*.log\" {\n    rotate 4\n    weekly\n  }\n",
                     },
                     Raw {
                      content: "''",
                     },
                     Raw {
                      content: ";\n",
                     },
                    ],
                    position: (282, 37),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (272, 29),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "checkConfig",
               position: (293, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (293, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (294, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (294, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (294, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (295, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (295, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (296, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether the config should be checked at build time.\n\nSome options are not checkable at build time because of the build sandbox:\nfor example, the test does not know about existing files and system users are\nnot known.\nThese limitations mean we must adjust the file for tests (missingok is forced\nand users are replaced by dummy users), so tests are complemented by a\nlogrotate-checkconf service that is enabled by default.\nThis extra check can be disabled by disabling it at the systemd level with the\n<option>services.systemd.services.logrotate-checkconf.enable</option> option.\n\nConversely there are still things that might make this check fail incorrectly\n(e.g. a file path where we don't have access to intermediate directories):\nin this case you can disable the failing check with this option.\n",
                   },
                  ],
                  position: (296, 23),
                 },
                ),
               ],
               recursive: false,
               position: (293, 30),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "paths",
               position: (315, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (315, 15),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (316, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (316, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "attrsOf",
                    position: (316, 28),
                   },
                   arguments: [
                    FunctionApplication {
                     function: Variable {
                      identifier: "submodule",
                      position: (316, 37),
                     },
                     arguments: [
                      Variable {
                       identifier: "pathOpts",
                       position: (316, 47),
                      },
                     ],
                    },
                   ],
                  },
                  position: (316, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (317, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (317, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (318, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Attribute set of paths to rotate. The order each block appears in the generated configuration file\ncan be controlled by the <link linkend=\"opt-services.logrotate.paths._name_.priority\">priority</link> option\nusing the same semantics as `lib.mkOrder`. Smaller values have a greater priority.\nThis setting has been deprecated in favor of <link linkend=\"opt-services.logrotate.settings\">logrotate settings</link>.\n",
                   },
                  ],
                  position: (318, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (324, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (324, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "{\n  httpd = {\n    path = \"/var/log/httpd/*.log\";\n    user = config.services.httpd.user;\n    group = config.services.httpd.group;\n    keep = 7;\n  };\n\n  myapp = {\n    path = \"/var/log/myapp/*.log\";\n    user = \"myuser\";\n    group = \"mygroup\";\n    frequency = \"weekly\";\n    keep = 5;\n    priority = 1;\n  };\n}\n",
                     },
                    ],
                    position: (324, 37),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (315, 24),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "extraConfig",
               position: (345, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (345, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (346, 9),
                   },
                  ],
                 },
                 String {
                  parts: [],
                  position: (346, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (347, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (347, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "lines",
                     position: (347, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (348, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Extra contents to append to the logrotate configuration file. Refer to\n<link xlink:href=\"https://linux.die.net/man/8/logrotate\"/> for details.\nThis setting has been deprecated in favor of\n<link linkend=\"opt-services.logrotate.settings\">logrotate settings</link>.\n",
                   },
                  ],
                  position: (348, 23),
                 },
                ),
               ],
               recursive: false,
               position: (345, 30),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (206, 26),
         },
        ),
       ],
       recursive: false,
       position: (205, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (358, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (358, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (358, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (358, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "assertions",
              position: (359, 5),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mapAttrsToList",
             position: (360, 7),
            },
            arguments: [
             Function {
              argument: Some(
               "name",
              ),
              arguments: FunctionArguments {
               arguments: [],
               ellipsis: false,
              },
              definition: Function {
               argument: Some(
                "pathOpts",
               ),
               arguments: FunctionArguments {
                arguments: [],
                ellipsis: false,
               },
               definition: Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "assertion",
                     position: (363, 13),
                    },
                   ],
                  },
                  BinaryOperation {
                   operator: EqualTo,
                   operands: [
                    BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pathOpts",
                        position: (363, 26),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "user",
                          position: (363, 35),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (363, 43),
                      },
                     ],
                     position: (363, 40),
                    },
                    BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pathOpts",
                        position: (363, 53),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "group",
                          position: (363, 62),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (363, 71),
                      },
                     ],
                     position: (363, 68),
                    },
                   ],
                   position: (363, 49),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "message",
                     position: (364, 13),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "If either of `services.logrotate.paths.",
                    },
                    Expression {
                     expression: Variable {
                      identifier: "name",
                      position: (365, 56),
                     },
                    },
                    Raw {
                     content: ".user` or `services.logrotate.paths.",
                    },
                    Expression {
                     expression: Variable {
                      identifier: "name",
                      position: (365, 99),
                     },
                    },
                    Raw {
                     content: ".group` are specified then *both* must be specified.\n",
                    },
                   ],
                   position: (364, 23),
                  },
                 ),
                ],
                recursive: false,
                position: (362, 11),
               },
               position: (361, 16),
              },
              position: (361, 10),
             },
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (368, 9),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "paths",
                 position: (368, 13),
                },
               ],
              },
              default: None,
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "warnings",
              position: (370, 5),
             },
            ],
           },
           BinaryOperation {
            operator: Concatenation,
            operands: [
             FunctionApplication {
              function: Variable {
               identifier: "mapAttrsToList",
               position: (371, 8),
              },
              arguments: [
               Function {
                argument: Some(
                 "name",
                ),
                arguments: FunctionArguments {
                 arguments: [],
                 ellipsis: false,
                },
                definition: Function {
                 argument: Some(
                  "pathOpts",
                 ),
                 arguments: FunctionArguments {
                  arguments: [],
                  ellipsis: false,
                 },
                 definition: String {
                  parts: [
                   Raw {
                    content: "Using config.services.logrotate.paths.",
                   },
                   Expression {
                    expression: Variable {
                     identifier: "name",
                     position: (373, 51),
                    },
                   },
                   Raw {
                    content: " is deprecated and will become unsupported in a future release.\nPlease use services.logrotate.settings instead.\n",
                   },
                  ],
                  position: (372, 26),
                 },
                 position: (372, 16),
                },
                position: (372, 10),
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (376, 9),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "paths",
                   position: (376, 13),
                  },
                 ],
                },
                default: None,
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "optional",
               position: (378, 8),
              },
              arguments: [
               BinaryOperation {
                operator: NotEqualTo,
                operands: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (378, 18),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "extraConfig",
                     position: (378, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                 String {
                  parts: [],
                  position: (378, 37),
                 },
                ],
                position: (378, 34),
               },
               String {
                parts: [
                 Raw {
                  content: "Using config.services.logrotate.extraConfig is deprecated and will become unsupported in a future release.\nPlease use services.logrotate.settings with globals=true instead.\n",
                 },
                ],
                position: (378, 41),
               },
              ],
             },
            ],
            position: (377, 9),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (383, 5),
             },
             Raw {
              content: "services",
              position: (383, 13),
             },
             Raw {
              content: "logrotate",
              position: (383, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (384, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Logrotate Service",
                },
               ],
               position: (384, 21),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "startAt",
                 position: (385, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "hourly",
                },
               ],
               position: (385, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (387, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Restart",
                    position: (388, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "no",
                   },
                  ],
                  position: (388, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (389, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "root",
                   },
                  ],
                  position: (389, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (390, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (390, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "logrotate",
                        position: (390, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/sbin/logrotate ",
                   },
                   Expression {
                    expression: Variable {
                     identifier: "mailOption",
                     position: (390, 57),
                    },
                   },
                   Raw {
                    content: " ",
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (390, 71),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "configFile",
                        position: (390, 75),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                  position: (390, 21),
                 },
                ),
               ],
               recursive: false,
               position: (387, 23),
              },
             ),
            ],
            recursive: false,
            position: (383, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (393, 5),
             },
             Raw {
              content: "services",
              position: (393, 13),
             },
             Raw {
              content: "logrotate-checkconf",
              position: (393, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (394, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Logrotate configuration check",
                },
               ],
               position: (394, 21),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (395, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                  },
                 ],
                 position: (395, 20),
                },
               ],
               position: (395, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (396, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Type",
                    position: (397, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "oneshot",
                   },
                  ],
                  position: (397, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "RemainAfterExit",
                    position: (398, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (398, 27),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (399, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (399, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "logrotate",
                        position: (399, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/sbin/logrotate --debug ",
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (399, 65),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "configFile",
                        position: (399, 69),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                  position: (399, 21),
                 },
                ),
               ],
               recursive: false,
               position: (396, 23),
              },
             ),
            ],
            recursive: false,
            position: (393, 44),
           },
          ),
         ],
         recursive: false,
         position: (358, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (200, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}