---
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: "rsnapshot",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfgfile",
        position: (7, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (7, 13),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeText",
          position: (7, 18),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "rsnapshot.conf",
          position: (7, 29),
         },
        ],
       },
       String {
        parts: [
         Raw {
          content: "config_version\t1.2\ncmd_cp\t",
          position: (8, 1),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "pkgs",
            position: (9, 14),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "coreutils",
              position: (9, 19),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "/bin/cp\ncmd_rm\t",
          position: (9, 29),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "pkgs",
            position: (10, 14),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "coreutils",
              position: (10, 19),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "/bin/rm\ncmd_rsync\t",
          position: (10, 29),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "pkgs",
            position: (11, 17),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "rsync",
              position: (11, 22),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "/bin/rsync\ncmd_ssh\t",
          position: (11, 28),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "pkgs",
            position: (12, 15),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "openssh",
              position: (12, 20),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "/bin/ssh\ncmd_logger\t",
          position: (12, 28),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "pkgs",
            position: (13, 18),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "inetutils",
              position: (13, 23),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "/bin/logger\ncmd_du\t",
          position: (13, 33),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "pkgs",
            position: (14, 14),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "coreutils",
              position: (14, 19),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "/bin/du\ncmd_rsnapshot_diff\t",
          position: (14, 29),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "pkgs",
            position: (15, 26),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "rsnapshot",
              position: (15, 31),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "/bin/rsnapshot-diff\nlockfile\t/run/rsnapshot.pid\nlink_dest\t1\n\n",
          position: (15, 41),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (19, 7),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "extraConfig",
              position: (19, 11),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n",
          position: (19, 23),
         },
        ],
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (23, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (24, 5),
           },
           Raw {
            content: "rsnapshot",
            position: (24, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (25, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (25, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "rsnapshot backups",
                 position: (25, 32),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enableManualRsnapshot",
               position: (26, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (26, 31),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (27, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to enable manual usage of the rsnapshot command with this module.",
                    position: (27, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (28, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (28, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (29, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (29, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (29, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (26, 40),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "extraConfig",
               position: (32, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (32, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (33, 9),
                   },
                  ],
                 },
                 String {
                  parts: [],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (34, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "retains\thourly\t24\nretain\tdaily\t365\nbackup\t/home/\tlocalhost/\n",
                    position: (35, 1),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (39, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (39, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "lines",
                     position: (39, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (40, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "rsnapshot configuration option in addition to the defaults from\nrsnapshot and this module.\n\nNote that tabs are required to separate option arguments, and\ndirectory names require trailing slashes.\n\nThe \"extra\" in the option name might be a little misleading right\nnow, as it is required to get a functional configuration.\n",
                    position: (41, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (32, 30),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "cronIntervals",
               position: (52, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (52, 23),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (53, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (53, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (54, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "hourly",
                       position: (54, 21),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "0 * * * *",
                       position: (54, 31),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "daily",
                       position: (54, 43),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "50 21 * * *",
                       position: (54, 52),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (54, 19),
                 },
                ),
                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: "attrsOf",
                      position: (55, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (55, 30),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (55, 36),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (56, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Periodicity at which intervals should be run by cron.\nNote that the intervals also have to exist in configuration\nas retain options.\n",
                    position: (57, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (52, 32),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (24, 26),
         },
        ),
       ],
       recursive: false,
       position: (23, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (65, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (65, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (65, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (65, 21),
           },
          ],
         },
         default: None,
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkMerge",
          position: (65, 29),
         },
         arguments: [
          List {
           elements: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "services",
                  position: (67, 7),
                 },
                 Raw {
                  content: "cron",
                  position: (67, 16),
                 },
                 Raw {
                  content: "systemCronJobs",
                  position: (67, 21),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mapAttrsToList",
                 position: (68, 9),
                },
                arguments: [
                 Function {
                  argument: Some(
                   "interval",
                  ),
                  arguments: FunctionArguments {
                   arguments: [],
                   ellipsis: false,
                  },
                  definition: Function {
                   argument: Some(
                    "time",
                   ),
                   arguments: FunctionArguments {
                    arguments: [],
                    ellipsis: false,
                   },
                   definition: String {
                    parts: [
                     Expression {
                      expression: Variable {
                       identifier: "time",
                       position: (68, 44),
                      },
                     },
                     Raw {
                      content: " root ",
                      position: (68, 49),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (68, 57),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "rsnapshot",
                          position: (68, 62),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/rsnapshot -c ",
                      position: (68, 72),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "cfgfile",
                       position: (68, 92),
                      },
                     },
                     Raw {
                      content: " ",
                      position: (68, 100),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "interval",
                       position: (68, 103),
                      },
                     },
                    ],
                   },
                   position: (68, 35),
                  },
                  position: (68, 25),
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (68, 115),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "cronIntervals",
                     position: (68, 119),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (66, 5),
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkIf",
              position: (70, 6),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (70, 11),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "enableManualRsnapshot",
                  position: (70, 15),
                 },
                ],
               },
               default: None,
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "environment",
                    position: (71, 7),
                   },
                   Raw {
                    content: "systemPackages",
                    position: (71, 19),
                   },
                  ],
                 },
                 List {
                  elements: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (71, 38),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "rsnapshot",
                       position: (71, 43),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                  position: (71, 36),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "environment",
                    position: (72, 7),
                   },
                   Raw {
                    content: "etc",
                    position: (72, 19),
                   },
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "rsnapshot.conf",
                       position: (72, 24),
                      },
                     ],
                    },
                   },
                   Raw {
                    content: "source",
                    position: (72, 40),
                   },
                  ],
                 },
                 Variable {
                  identifier: "cfgfile",
                  position: (72, 49),
                 },
                ),
               ],
               recursive: false,
               position: (70, 37),
              },
             ],
            },
           ],
           position: (65, 37),
          },
         ],
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (22, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}