---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "rsnapshot",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfgfile",
        position: (7, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (7, 13),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (7, 18),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "rsnapshot.conf",
          position: (7, 29),
         },
        ],
        position: (7, 28),
       },
       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 {
            parts: [
             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 {
            parts: [
             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 {
            parts: [
             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 {
            parts: [
             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 {
            parts: [
             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 {
            parts: [
             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 {
            parts: [
             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 {
            parts: [
             Raw {
              content: "extraConfig",
              position: (19, 11),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n",
          position: (19, 23),
         },
        ],
        position: (7, 45),
       },
      ],
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (23, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (24, 5),
           },
           Raw {
            content: "rsnapshot",
            position: (24, 14),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (25, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (25, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "rsnapshot backups",
                 position: (25, 32),
                },
               ],
               position: (25, 31),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enableManualRsnapshot",
               position: (26, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (26, 31),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (27, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Whether to enable manual usage of the rsnapshot command with this module.",
                    position: (27, 24),
                   },
                  ],
                  position: (27, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (28, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "true",
                  position: (28, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (29, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (29, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "bool",
                     position: (29, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
               ],
               recursive: false,
               position: (26, 40),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "extraConfig",
               position: (32, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (32, 21),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (33, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (33, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (34, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "retains\thourly\t24\nretain\tdaily\t365\nbackup\t/home/\tlocalhost/\n",
                    position: (35, 1),
                   },
                  ],
                  position: (34, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (39, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (39, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "lines",
                     position: (39, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (40, 9),
                   },
                  ],
                 },
                 to: 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),
                   },
                  ],
                  position: (40, 23),
                 },
                },
               ],
               recursive: false,
               position: (32, 30),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "cronIntervals",
               position: (52, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (52, 23),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (53, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [],
                  recursive: false,
                  position: (53, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (54, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "hourly",
                       position: (54, 21),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "0 * * * *",
                       position: (54, 31),
                      },
                     ],
                     position: (54, 30),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "daily",
                       position: (54, 43),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "50 21 * * *",
                       position: (54, 52),
                      },
                     ],
                     position: (54, 51),
                    },
                   },
                  ],
                  recursive: false,
                  position: (54, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (55, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (55, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "attrsOf",
                      position: (55, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (55, 30),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "str",
                       position: (55, 36),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (56, 9),
                   },
                  ],
                 },
                 to: 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),
                   },
                  ],
                  position: (56, 23),
                 },
                },
               ],
               recursive: false,
               position: (52, 32),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (24, 26),
         },
        },
       ],
       recursive: false,
       position: (23, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (65, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (65, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (65, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (65, 21),
           },
          ],
         },
         default: None,
        },
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "mkMerge",
           position: (65, 29),
          },
          arguments: [
           List {
            elements: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "services",
                   position: (67, 7),
                  },
                  Raw {
                   content: "cron",
                   position: (67, 16),
                  },
                  Raw {
                   content: "systemCronJobs",
                   position: (67, 21),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: Variable {
                  identifier: "mapAttrsToList",
                  position: (68, 9),
                 },
                 arguments: [
                  Parentheses {
                   expression: Function {
                    argument: Simple {
                     identifier: "interval",
                    },
                    definition: Function {
                     argument: Simple {
                      identifier: "time",
                     },
                     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 {
                          parts: [
                           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, 41),
                     },
                     position: (68, 35),
                    },
                    position: (68, 25),
                   },
                   position: (68, 24),
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (68, 115),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "cronIntervals",
                      position: (68, 119),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               },
              ],
              recursive: false,
              position: (66, 5),
             },
             Parentheses {
              expression: FunctionApplication {
               function: Variable {
                identifier: "mkIf",
                position: (70, 6),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (70, 11),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "enableManualRsnapshot",
                    position: (70, 15),
                   },
                  ],
                 },
                 default: None,
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "environment",
                      position: (71, 7),
                     },
                     Raw {
                      content: "systemPackages",
                      position: (71, 19),
                     },
                    ],
                   },
                   to: List {
                    elements: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (71, 38),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "rsnapshot",
                         position: (71, 43),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                    position: (71, 36),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "environment",
                      position: (72, 7),
                     },
                     Raw {
                      content: "etc",
                      position: (72, 19),
                     },
                     Expression {
                      expression: String {
                       parts: [
                        Raw {
                         content: "rsnapshot.conf",
                         position: (72, 24),
                        },
                       ],
                       position: (72, 23),
                      },
                     },
                     Raw {
                      content: "source",
                      position: (72, 40),
                     },
                    ],
                   },
                   to: Variable {
                    identifier: "cfgfile",
                    position: (72, 49),
                   },
                  },
                 ],
                 recursive: false,
                 position: (70, 37),
                },
               ],
              },
              position: (70, 5),
             },
            ],
            position: (65, 37),
           },
          ],
         },
         position: (65, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (22, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}