---
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: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (7, 16),
        },
        Raw {
         content: "tuptime",
         position: (7, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (11, 3),
        },
        Raw {
         content: "services",
         position: (11, 11),
        },
        Raw {
         content: "tuptime",
         position: (11, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (13, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (13, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "the total uptime service",
              position: (13, 30),
             },
            ],
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "timer",
            position: (15, 5),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (16, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (16, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (17, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (17, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (17, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (18, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (18, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (19, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to regularly log uptime to detect bad shutdowns.",
                    position: (19, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (16, 25),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "period",
               position: (22, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (22, 16),
             },
             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: "default",
                    position: (24, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "*:0/5",
                    position: (24, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (25, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "systemd calendar event",
                    position: (25, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (22, 25),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (15, 13),
         },
        ),
       ],
       recursive: false,
       position: (11, 30),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (31, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (31, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (31, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (31, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (33, 5),
             },
             Raw {
              content: "systemPackages",
              position: (33, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (33, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "tuptime",
                 position: (33, 41),
                },
               ],
              },
              default: None,
             },
            ],
            position: (33, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (35, 5),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "groups",
                 position: (36, 7),
                },
                Raw {
                 content: "_tuptime",
                 position: (36, 14),
                },
                Raw {
                 content: "members",
                 position: (36, 23),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "_tuptime",
                   position: (36, 36),
                  },
                 ],
                },
               ],
               position: (36, 33),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "users",
                 position: (37, 7),
                },
                Raw {
                 content: "_tuptime",
                 position: (37, 13),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "isSystemUser",
                    position: (38, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (38, 24),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "group",
                    position: (39, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "_tuptime",
                    position: (39, 18),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (40, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "tuptime database owner",
                    position: (40, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (37, 24),
              },
             ),
            ],
            recursive: false,
            position: (35, 13),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (44, 5),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "services",
                 position: (45, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "tuptime",
                    position: (47, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (48, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "the total uptime service",
                       position: (48, 26),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "documentation",
                       position: (49, 11),
                      },
                     ],
                    },
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "man:tuptime(1)",
                         position: (49, 30),
                        },
                       ],
                      },
                     ],
                     position: (49, 27),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "after",
                       position: (50, 11),
                      },
                     ],
                    },
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "time-sync.target",
                         position: (50, 22),
                        },
                       ],
                      },
                     ],
                     position: (50, 19),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "wantedBy",
                       position: (51, 11),
                      },
                     ],
                    },
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "multi-user.target",
                         position: (51, 25),
                        },
                       ],
                      },
                     ],
                     position: (51, 22),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "serviceConfig",
                       position: (52, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "StateDirectory",
                          position: (53, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "tuptime",
                          position: (53, 31),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "Type",
                          position: (54, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "oneshot",
                          position: (54, 21),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "User",
                          position: (55, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "_tuptime",
                          position: (55, 21),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "RemainAfterExit",
                          position: (56, 13),
                         },
                        ],
                       },
                       Variable {
                        identifier: "true",
                        position: (56, 31),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "ExecStart",
                          position: (57, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Expression {
                          expression: PropertyAccess {
                           expression: Variable {
                            identifier: "pkgs",
                            position: (57, 28),
                           },
                           attribute_path: AttributePath {
                            attributes: [
                             Raw {
                              content: "tuptime",
                              position: (57, 33),
                             },
                            ],
                           },
                           default: None,
                          },
                         },
                         Raw {
                          content: "/bin/tuptime -x",
                          position: (57, 41),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "ExecStop",
                          position: (58, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Expression {
                          expression: PropertyAccess {
                           expression: Variable {
                            identifier: "pkgs",
                            position: (58, 27),
                           },
                           attribute_path: AttributePath {
                            attributes: [
                             Raw {
                              content: "tuptime",
                              position: (58, 32),
                             },
                            ],
                           },
                           default: None,
                          },
                         },
                         Raw {
                          content: "/bin/tuptime -xg",
                          position: (58, 40),
                         },
                        ],
                       },
                      ),
                     ],
                     recursive: false,
                     position: (52, 27),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (47, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "tuptime-oneshot",
                    position: (62, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (62, 27),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (62, 32),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "timer",
                       position: (62, 36),
                      },
                      Raw {
                       content: "enable",
                       position: (62, 42),
                      },
                     ],
                    },
                    default: None,
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "description",
                         position: (63, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "the tuptime scheduled execution unit",
                         position: (63, 26),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "serviceConfig",
                         position: (64, 11),
                        },
                       ],
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "StateDirectory",
                            position: (65, 13),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "tuptime",
                            position: (65, 31),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "Type",
                            position: (66, 13),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "oneshot",
                            position: (66, 21),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "User",
                            position: (67, 13),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "_tuptime",
                            position: (67, 21),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "ExecStart",
                            position: (68, 13),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Expression {
                            expression: PropertyAccess {
                             expression: Variable {
                              identifier: "pkgs",
                              position: (68, 28),
                             },
                             attribute_path: AttributePath {
                              attributes: [
                               Raw {
                                content: "tuptime",
                                position: (68, 33),
                               },
                              ],
                             },
                             default: None,
                            },
                           },
                           Raw {
                            content: "/bin/tuptime -x",
                            position: (68, 41),
                           },
                          ],
                         },
                        ),
                       ],
                       recursive: false,
                       position: (64, 27),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (62, 49),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (45, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "timers",
                 position: (73, 7),
                },
                Raw {
                 content: "tuptime",
                 position: (73, 14),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "mkIf",
                position: (73, 24),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (73, 29),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "timer",
                    position: (73, 33),
                   },
                   Raw {
                    content: "enable",
                    position: (73, 39),
                   },
                  ],
                 },
                 default: None,
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "description",
                      position: (74, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "the tuptime scheduled execution timer",
                      position: (74, 24),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "wantedBy",
                      position: (77, 9),
                     },
                    ],
                   },
                   List {
                    elements: [
                     String {
                      parts: [
                       Raw {
                        content: "tuptime.service",
                        position: (77, 23),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "timers.target",
                        position: (77, 41),
                       },
                      ],
                     },
                    ],
                    position: (77, 20),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "partOf",
                      position: (79, 9),
                     },
                    ],
                   },
                   List {
                    elements: [
                     String {
                      parts: [
                       Raw {
                        content: "tuptime.service",
                        position: (79, 21),
                       },
                      ],
                     },
                    ],
                    position: (79, 18),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "timerConfig",
                      position: (80, 9),
                     },
                    ],
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "OnBootSec",
                         position: (81, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "1min",
                         position: (81, 24),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "OnCalendar",
                         position: (82, 11),
                        },
                       ],
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (82, 24),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "timer",
                          position: (82, 28),
                         },
                         Raw {
                          content: "period",
                          position: (82, 34),
                         },
                        ],
                       },
                       default: None,
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "Unit",
                         position: (83, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "tuptime-oneshot.service",
                         position: (83, 19),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (80, 23),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (73, 46),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (44, 15),
           },
          ),
         ],
         recursive: false,
         position: (31, 28),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (89, 3),
        },
        Raw {
         content: "maintainers",
         position: (89, 8),
        },
       ],
      },
      List {
       elements: [
        PropertyAccess {
         expression: Variable {
          identifier: "maintainers",
          position: (89, 24),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "evils",
            position: (89, 36),
           },
          ],
         },
         default: None,
        },
       ],
       position: (89, 22),
      },
     ),
    ],
    recursive: false,
    position: (9, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}