---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    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: "psd",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (8, 3),
        },
        Raw {
         content: "services",
         position: (8, 11),
        },
        Raw {
         content: "psd",
         position: (8, 20),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "types",
        position: (8, 31),
       },
       target: Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "enable",
             position: (9, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (9, 14),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (10, 7),
                 },
                ],
               },
               Variable {
                identifier: "bool",
                position: (10, 14),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (11, 7),
                 },
                ],
               },
               Variable {
                identifier: "false",
                position: (11, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (12, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Whether to enable the Profile Sync daemon.\n",
                  position: (13, 1),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (9, 23),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "resyncTimer",
             position: (16, 5),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkOption",
            position: (16, 19),
           },
           arguments: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (17, 7),
                 },
                ],
               },
               Variable {
                identifier: "str",
                position: (17, 14),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "default",
                  position: (18, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "1h",
                  position: (18, 18),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "example",
                  position: (19, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "1h 30min",
                  position: (19, 18),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (20, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "The amount of time to wait before syncing browser profiles back to the\ndisk.\n\nTakes a systemd.unit time span. The time unit defaults to seconds if\nomitted.\n",
                  position: (21, 1),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (16, 28),
            },
           ],
          },
         ),
        ],
        recursive: false,
        position: (8, 38),
       },
       position: (8, 26),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (30, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (30, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (30, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (30, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (31, 5),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "user",
                 position: (32, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "services",
                    position: (33, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "psd",
                       position: (34, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "enable",
                          position: (35, 13),
                         },
                        ],
                       },
                       Variable {
                        identifier: "true",
                        position: (35, 22),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "description",
                          position: (36, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "Profile Sync daemon",
                          position: (36, 28),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "wants",
                          position: (37, 13),
                         },
                        ],
                       },
                       List {
                        elements: [
                         String {
                          parts: [
                           Raw {
                            content: "psd-resync.service",
                            position: (37, 24),
                           },
                          ],
                         },
                        ],
                        position: (37, 21),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "wantedBy",
                          position: (38, 13),
                         },
                        ],
                       },
                       List {
                        elements: [
                         String {
                          parts: [
                           Raw {
                            content: "default.target",
                            position: (38, 27),
                           },
                          ],
                         },
                        ],
                        position: (38, 24),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "path",
                          position: (39, 13),
                         },
                        ],
                       },
                       With {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (39, 25),
                        },
                        target: List {
                         elements: [
                          Variable {
                           identifier: "rsync",
                           position: (39, 33),
                          },
                          Variable {
                           identifier: "kmod",
                           position: (39, 39),
                          },
                          Variable {
                           identifier: "gawk",
                           position: (39, 44),
                          },
                          Variable {
                           identifier: "nettools",
                           position: (39, 49),
                          },
                          Variable {
                           identifier: "util-linux",
                           position: (39, 58),
                          },
                          Variable {
                           identifier: "profile-sync-daemon",
                           position: (39, 69),
                          },
                         ],
                         position: (39, 31),
                        },
                        position: (39, 20),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "unitConfig",
                          position: (40, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "RequiresMountsFor",
                             position: (41, 15),
                            },
                           ],
                          },
                          List {
                           elements: [
                            String {
                             parts: [
                              Raw {
                               content: "/home/",
                               position: (41, 38),
                              },
                             ],
                            },
                           ],
                           position: (41, 35),
                          },
                         ),
                        ],
                        recursive: false,
                        position: (40, 26),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "serviceConfig",
                          position: (43, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "Type",
                             position: (44, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "oneshot",
                             position: (44, 23),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "RemainAfterExit",
                             position: (45, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "yes",
                             position: (45, 34),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "ExecStart",
                             position: (46, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Expression {
                             expression: PropertyAccess {
                              expression: Variable {
                               identifier: "pkgs",
                               position: (46, 30),
                              },
                              attribute_path: AttributePath {
                               attributes: [
                                Raw {
                                 content: "profile-sync-daemon",
                                 position: (46, 35),
                                },
                               ],
                              },
                              default: None,
                             },
                            },
                            Raw {
                             content: "/bin/profile-sync-daemon sync",
                             position: (46, 55),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "ExecStop",
                             position: (47, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Expression {
                             expression: PropertyAccess {
                              expression: Variable {
                               identifier: "pkgs",
                               position: (47, 29),
                              },
                              attribute_path: AttributePath {
                               attributes: [
                                Raw {
                                 content: "profile-sync-daemon",
                                 position: (47, 34),
                                },
                               ],
                              },
                              default: None,
                             },
                            },
                            Raw {
                             content: "/bin/profile-sync-daemon unsync",
                             position: (47, 54),
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (43, 29),
                       },
                      ),
                     ],
                     recursive: false,
                     position: (34, 17),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "psd-resync",
                       position: (51, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "enable",
                          position: (52, 13),
                         },
                        ],
                       },
                       Variable {
                        identifier: "true",
                        position: (52, 22),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "description",
                          position: (53, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "Timed profile resync",
                          position: (53, 28),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "after",
                          position: (54, 13),
                         },
                        ],
                       },
                       List {
                        elements: [
                         String {
                          parts: [
                           Raw {
                            content: "psd.service",
                            position: (54, 24),
                           },
                          ],
                         },
                        ],
                        position: (54, 21),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "wants",
                          position: (55, 13),
                         },
                        ],
                       },
                       List {
                        elements: [
                         String {
                          parts: [
                           Raw {
                            content: "psd-resync.timer",
                            position: (55, 24),
                           },
                          ],
                         },
                        ],
                        position: (55, 21),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "partOf",
                          position: (56, 13),
                         },
                        ],
                       },
                       List {
                        elements: [
                         String {
                          parts: [
                           Raw {
                            content: "psd.service",
                            position: (56, 25),
                           },
                          ],
                         },
                        ],
                        position: (56, 22),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "wantedBy",
                          position: (57, 13),
                         },
                        ],
                       },
                       List {
                        elements: [
                         String {
                          parts: [
                           Raw {
                            content: "default.target",
                            position: (57, 27),
                           },
                          ],
                         },
                        ],
                        position: (57, 24),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "path",
                          position: (58, 13),
                         },
                        ],
                       },
                       With {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (58, 25),
                        },
                        target: List {
                         elements: [
                          Variable {
                           identifier: "rsync",
                           position: (58, 33),
                          },
                          Variable {
                           identifier: "kmod",
                           position: (58, 39),
                          },
                          Variable {
                           identifier: "gawk",
                           position: (58, 44),
                          },
                          Variable {
                           identifier: "nettools",
                           position: (58, 49),
                          },
                          Variable {
                           identifier: "util-linux",
                           position: (58, 58),
                          },
                          Variable {
                           identifier: "profile-sync-daemon",
                           position: (58, 69),
                          },
                         ],
                         position: (58, 31),
                        },
                        position: (58, 20),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "serviceConfig",
                          position: (59, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "Type",
                             position: (60, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "oneshot",
                             position: (60, 23),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "ExecStart",
                             position: (61, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Expression {
                             expression: PropertyAccess {
                              expression: Variable {
                               identifier: "pkgs",
                               position: (61, 30),
                              },
                              attribute_path: AttributePath {
                               attributes: [
                                Raw {
                                 content: "profile-sync-daemon",
                                 position: (61, 35),
                                },
                               ],
                              },
                              default: None,
                             },
                            },
                            Raw {
                             content: "/bin/profile-sync-daemon resync",
                             position: (61, 55),
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (59, 29),
                       },
                      ),
                     ],
                     recursive: false,
                     position: (51, 24),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (33, 20),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "timers",
                    position: (66, 9),
                   },
                   Raw {
                    content: "psd-resync",
                    position: (66, 16),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (67, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Timer for profile sync daemon - ",
                       position: (67, 26),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (67, 60),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "resyncTimer",
                           position: (67, 64),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "partOf",
                       position: (68, 11),
                      },
                     ],
                    },
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "psd-resync.service",
                         position: (68, 23),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "psd.service",
                         position: (68, 44),
                        },
                       ],
                      },
                     ],
                     position: (68, 20),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "timerConfig",
                       position: (70, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "OnUnitActiveSec",
                          position: (71, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Expression {
                          expression: PropertyAccess {
                           expression: Variable {
                            identifier: "cfg",
                            position: (71, 34),
                           },
                           attribute_path: AttributePath {
                            attributes: [
                             Raw {
                              content: "resyncTimer",
                              position: (71, 38),
                             },
                            ],
                           },
                           default: None,
                          },
                         },
                        ],
                       },
                      ),
                     ],
                     recursive: false,
                     position: (70, 25),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (66, 29),
                 },
                ),
               ],
               recursive: false,
               position: (32, 14),
              },
             ),
            ],
            recursive: false,
            position: (31, 15),
           },
          ),
         ],
         recursive: false,
         position: (30, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (7, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}