---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    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: "nix",
         position: (6, 16),
        },
        Raw {
         content: "optimise",
         position: (6, 20),
        },
       ],
      },
      default: None,
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (13, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "nix",
            position: (15, 5),
           },
           Raw {
            content: "optimise",
            position: (15, 9),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "automatic",
               position: (17, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (17, 19),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (18, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "false",
                  position: (18, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (19, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (19, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "bool",
                     position: (19, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (20, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Automatically run the nix store optimiser at a specific time.",
                    position: (20, 24),
                   },
                  ],
                  position: (20, 23),
                 },
                },
               ],
               recursive: false,
               position: (17, 28),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "dates",
               position: (23, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (23, 15),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (24, 9),
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "03:45",
                      position: (24, 21),
                     },
                    ],
                    position: (24, 20),
                   },
                  ],
                  position: (24, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (25, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (25, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "listOf",
                      position: (25, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (25, 29),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "str",
                       position: (25, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (26, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Specification (in the format described by\n<citerefentry><refentrytitle>systemd.time</refentrytitle>\n<manvolnum>7</manvolnum></citerefentry>) of the time at\nwhich the optimiser will run.\n",
                    position: (27, 1),
                   },
                  ],
                  position: (26, 23),
                 },
                },
               ],
               recursive: false,
               position: (23, 24),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (15, 20),
         },
        },
       ],
       recursive: false,
       position: (13, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (39, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "assertions",
            position: (40, 5),
           },
          ],
         },
         to: List {
          elements: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "assertion",
                 position: (42, 9),
                },
               ],
              },
              to: BinaryOperation {
               operator: Implication,
               operands: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (42, 21),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "automatic",
                    position: (42, 25),
                   },
                  ],
                 },
                 default: None,
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (42, 38),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "nix",
                    position: (42, 45),
                   },
                   Raw {
                    content: "enable",
                    position: (42, 49),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (42, 35),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "message",
                 position: (43, 9),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "nix.optimise.automatic requires nix.enable",
                 position: (43, 21),
                },
               ],
               position: (43, 19),
              },
             },
            ],
            recursive: false,
            position: (41, 7),
           },
          ],
          position: (40, 18),
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "systemd",
            position: (47, 5),
           },
           Raw {
            content: "services",
            position: (47, 13),
           },
           Raw {
            content: "nix-optimise",
            position: (47, 22),
           },
          ],
         },
         to: FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (47, 37),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "mkIf",
              position: (47, 41),
             },
            ],
           },
           default: None,
          },
          arguments: [
           PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (47, 46),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "nix",
               position: (47, 53),
              },
              Raw {
               content: "enable",
               position: (47, 57),
              },
             ],
            },
            default: None,
           },
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (48, 9),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Nix Store Optimiser",
                 position: (48, 24),
                },
               ],
               position: (48, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "unitConfig",
                 position: (50, 9),
                },
                Raw {
                 content: "ConditionPathIsReadWrite",
                 position: (50, 20),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/nix/var/nix/daemon-socket",
                 position: (50, 48),
                },
               ],
               position: (50, 47),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (51, 9),
                },
                Raw {
                 content: "ExecStart",
                 position: (51, 23),
                },
               ],
              },
              to: String {
               parts: [
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "config",
                   position: (51, 38),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "nix",
                     position: (51, 45),
                    },
                    Raw {
                     content: "package",
                     position: (51, 49),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/nix-store --optimise",
                 position: (51, 57),
                },
               ],
               position: (51, 35),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "startAt",
                 position: (52, 9),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "optionals",
                position: (52, 19),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (52, 29),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "automatic",
                    position: (52, 33),
                   },
                  ],
                 },
                 default: None,
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (52, 43),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "dates",
                    position: (52, 47),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (48, 7),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (39, 12),
      },
     },
    ],
    recursive: false,
    position: (9, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}