---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "cfg",
       position: (3, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (3, 9),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "services",
        position: (3, 16),
       },
       Raw {
        content: "podgrab",
        position: (3, 25),
       },
      ],
     },
     default: None,
    },
   ),
  ],
  target: Map {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "options",
        position: (6, 3),
       },
       Raw {
        content: "services",
        position: (6, 11),
       },
       Raw {
        content: "podgrab",
        position: (6, 20),
       },
      ],
     },
     With {
      expression: Variable {
       identifier: "lib",
       position: (6, 35),
      },
      target: Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (7, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (7, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "Podgrab, a self-hosted podcast manager",
              position: (7, 30),
             },
            ],
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "passwordFile",
            position: (9, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (9, 20),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (10, 7),
                },
               ],
              },
              With {
               expression: Variable {
                identifier: "types",
                position: (10, 19),
               },
               target: FunctionApplication {
                function: Variable {
                 identifier: "nullOr",
                 position: (10, 26),
                },
                arguments: [
                 Variable {
                  identifier: "str",
                  position: (10, 33),
                 },
                ],
               },
               position: (10, 14),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (11, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (11, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (12, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "/run/secrets/password.env",
                 position: (12, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (13, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The path to a file containing the PASSWORD environment variable\ndefinition for Podgrab's authentification.\n",
                 position: (14, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (9, 29),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "port",
            position: (19, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (19, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (20, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (20, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "port",
                  position: (20, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (21, 7),
                },
               ],
              },
              Int {
               value: 8080,
               position: (21, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (22, 7),
                },
               ],
              },
              Int {
               value: 4242,
               position: (22, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (23, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The port on which Podgrab will listen for incoming HTTP traffic.",
                 position: (23, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (19, 21),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (6, 40),
      },
      position: (6, 30),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "config",
        position: (27, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (27, 12),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "mkIf",
          position: (27, 16),
         },
        ],
       },
       default: None,
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (27, 21),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "enable",
           position: (27, 25),
          },
         ],
        },
        default: None,
       },
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "systemd",
             position: (28, 5),
            },
            Raw {
             content: "services",
             position: (28, 13),
            },
            Raw {
             content: "podgrab",
             position: (28, 22),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "description",
                position: (29, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "Podgrab podcast manager",
                position: (29, 22),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "wantedBy",
                position: (30, 7),
               },
              ],
             },
             List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "multi-user.target",
                  position: (30, 21),
                 },
                ],
               },
              ],
              position: (30, 18),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "environment",
                position: (31, 7),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "CONFIG",
                   position: (32, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "/var/lib/podgrab/config",
                   position: (32, 19),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "DATA",
                   position: (33, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "/var/lib/podgrab/data",
                   position: (33, 17),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "GIN_MODE",
                   position: (34, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "release",
                   position: (34, 21),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "PORT",
                   position: (35, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "toString",
                  position: (35, 16),
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (35, 25),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "port",
                      position: (35, 29),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (31, 21),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "serviceConfig",
                position: (37, 7),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "DynamicUser",
                   position: (38, 9),
                  },
                 ],
                },
                Variable {
                 identifier: "true",
                 position: (38, 23),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "EnvironmentFile",
                   position: (39, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (39, 27),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "optional",
                     position: (39, 31),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (39, 41),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "passwordFile",
                        position: (39, 45),
                       },
                      ],
                     },
                     default: None,
                    },
                    Variable {
                     identifier: "null",
                     position: (39, 61),
                    },
                   ],
                   position: (39, 58),
                  },
                  List {
                   elements: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (40, 11),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "passwordFile",
                        position: (40, 15),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (39, 67),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "ExecStart",
                   position: (42, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (42, 24),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "podgrab",
                       position: (42, 29),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/podgrab",
                   position: (42, 37),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "WorkingDirectory",
                   position: (43, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (43, 31),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "podgrab",
                       position: (43, 36),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/share",
                   position: (43, 44),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "StateDirectory",
                   position: (44, 9),
                  },
                 ],
                },
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "podgrab/config",
                     position: (44, 29),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "podgrab/data",
                     position: (44, 46),
                    },
                   ],
                  },
                 ],
                 position: (44, 26),
                },
               ),
              ],
              recursive: false,
              position: (37, 23),
             },
            ),
           ],
           recursive: false,
           position: (28, 32),
          },
         ),
        ],
        recursive: false,
        position: (27, 32),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "meta",
        position: (49, 3),
       },
       Raw {
        content: "maintainers",
        position: (49, 8),
       },
      ],
     },
     With {
      expression: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (49, 27),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "maintainers",
          position: (49, 31),
         },
        ],
       },
       default: None,
      },
      target: List {
       elements: [
        Variable {
         identifier: "ambroisie",
         position: (49, 46),
        },
       ],
       position: (49, 44),
      },
      position: (49, 22),
     },
    ),
   ],
   recursive: false,
   position: (5, 1),
  },
  position: (2, 1),
 },
 position: (1, 1),
}