---
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: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "programs",
         position: (6, 16),
        },
        Raw {
         content: "msmtp",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (9, 3),
        },
        Raw {
         content: "maintainers",
         position: (9, 8),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "maintainers",
        position: (9, 27),
       },
       target: List {
        elements: [
         Variable {
          identifier: "pacien",
          position: (9, 42),
         },
        ],
        position: (9, 40),
       },
       position: (9, 22),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (11, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "programs",
            position: (12, 5),
           },
           Raw {
            content: "msmtp",
            position: (12, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (13, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (13, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "msmtp - an SMTP client",
                 position: (13, 32),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "setSendmail",
               position: (15, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (15, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (16, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (16, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (16, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (17, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (17, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (18, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to set the system sendmail to msmtp's.\n",
                    position: (19, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (15, 30),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "defaults",
               position: (23, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (23, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (24, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (24, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "attrs",
                     position: (24, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (25, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (25, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (26, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "aliases",
                       position: (27, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "/etc/aliases",
                       position: (27, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "port",
                       position: (28, 11),
                      },
                     ],
                    },
                    Int {
                     value: 587,
                     position: (28, 18),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "tls",
                       position: (29, 11),
                      },
                     ],
                    },
                    Variable {
                     identifier: "true",
                     position: (29, 17),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (26, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (31, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Default values applied to all accounts.\nSee msmtp(1) for the available options.\n",
                    position: (32, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (23, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "accounts",
               position: (37, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (37, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (38, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (38, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "attrsOf",
                    position: (38, 28),
                   },
                   arguments: [
                    Variable {
                     identifier: "attrs",
                     position: (38, 36),
                    },
                   ],
                  },
                  position: (38, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (39, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (39, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (40, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Expression {
                       expression: String {
                        parts: [
                         Raw {
                          content: "default",
                          position: (41, 12),
                         },
                        ],
                       },
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "host",
                          position: (42, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "smtp.example",
                          position: (42, 21),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "auth",
                          position: (43, 13),
                         },
                        ],
                       },
                       Variable {
                        identifier: "true",
                        position: (43, 20),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "user",
                          position: (44, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "someone",
                          position: (44, 21),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "passwordeval",
                          position: (45, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "cat /secrets/password.txt",
                          position: (45, 29),
                         },
                        ],
                       },
                      ),
                     ],
                     recursive: false,
                     position: (41, 23),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (40, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (48, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Named accounts and their respective configurations.\nThe special name \"default\" allows a default account to be defined.\nSee msmtp(1) for the available options.\n\nUse `programs.msmtp.extraConfig` instead of this attribute set-based\noption if ordered account inheritance is needed.\n\nIt is advised to use the `passwordeval` setting to read the password\nfrom a secret file to avoid having it written in the world-readable\nnix store. The password file must end with a newline (`\\n`).\n",
                    position: (49, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (37, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "extraConfig",
               position: (62, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (62, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (63, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (63, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "lines",
                     position: (63, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (64, 9),
                   },
                  ],
                 },
                 String {
                  parts: [],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (65, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Extra lines to add to the msmtp configuration verbatim.\nSee msmtp(1) for the syntax and available options.\n",
                    position: (66, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (62, 30),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (12, 22),
         },
        ),
       ],
       recursive: false,
       position: (11, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (73, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (73, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (73, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (73, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (74, 5),
             },
             Raw {
              content: "systemPackages",
              position: (74, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (74, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "msmtp",
                 position: (74, 41),
                },
               ],
              },
              default: None,
             },
            ],
            position: (74, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (76, 5),
             },
             Raw {
              content: "mail",
              position: (76, 14),
             },
             Raw {
              content: "sendmailSetuidWrapper",
              position: (76, 19),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (76, 43),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (76, 48),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "setSendmail",
                 position: (76, 52),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "program",
                   position: (77, 7),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "sendmail",
                   position: (77, 18),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "source",
                   position: (78, 7),
                  },
                 ],
                },
                String {
                 parts: [
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (78, 19),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "msmtp",
                       position: (78, 24),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/sendmail",
                   position: (78, 30),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "setuid",
                   position: (79, 7),
                  },
                 ],
                },
                Variable {
                 identifier: "false",
                 position: (79, 16),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "setgid",
                   position: (80, 7),
                  },
                 ],
                },
                Variable {
                 identifier: "false",
                 position: (80, 16),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "owner",
                   position: (81, 7),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "root",
                   position: (81, 16),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "group",
                   position: (82, 7),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "root",
                   position: (82, 16),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (76, 64),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (85, 5),
             },
             Raw {
              content: "etc",
              position: (85, 17),
             },
             Expression {
              expression: String {
               parts: [
                Raw {
                 content: "msmtprc",
                 position: (85, 22),
                },
               ],
              },
             },
             Raw {
              content: "text",
              position: (85, 31),
             },
            ],
           },
           LetIn {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "mkValueString",
                 position: (86, 7),
                },
               ],
              },
              Function {
               argument: Some(
                "v",
               ),
               arguments: FunctionArguments {
                arguments: [],
                ellipsis: false,
               },
               definition: IfThenElse {
                predicate: BinaryOperation {
                 operator: EqualTo,
                 operands: [
                  Variable {
                   identifier: "v",
                   position: (87, 12),
                  },
                  Variable {
                   identifier: "true",
                   position: (87, 17),
                  },
                 ],
                 position: (87, 14),
                },
                then: String {
                 parts: [
                  Raw {
                   content: "on",
                   position: (87, 28),
                  },
                 ],
                },
                else_: IfThenElse {
                 predicate: BinaryOperation {
                  operator: EqualTo,
                  operands: [
                   Variable {
                    identifier: "v",
                    position: (88, 17),
                   },
                   Variable {
                    identifier: "false",
                    position: (88, 22),
                   },
                  ],
                  position: (88, 19),
                 },
                 then: String {
                  parts: [
                   Raw {
                    content: "off",
                    position: (88, 34),
                   },
                  ],
                 },
                 else_: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "generators",
                    position: (89, 14),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "mkValueStringDefault",
                      position: (89, 25),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   Map {
                    bindings: [],
                    recursive: false,
                    position: (89, 46),
                   },
                   Variable {
                    identifier: "v",
                    position: (89, 49),
                   },
                  ],
                 },
                 position: (88, 14),
                },
                position: (87, 9),
               },
               position: (86, 23),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "mkKeyValueString",
                 position: (90, 7),
                },
               ],
              },
              Function {
               argument: Some(
                "k",
               ),
               arguments: FunctionArguments {
                arguments: [],
                ellipsis: false,
               },
               definition: Function {
                argument: Some(
                 "v",
                ),
                arguments: FunctionArguments {
                 arguments: [],
                 ellipsis: false,
                },
                definition: String {
                 parts: [
                  Expression {
                   expression: Variable {
                    identifier: "k",
                    position: (90, 35),
                   },
                  },
                  Raw {
                   content: " ",
                   position: (90, 37),
                  },
                  Expression {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "mkValueString",
                     position: (90, 40),
                    },
                    arguments: [
                     Variable {
                      identifier: "v",
                      position: (90, 54),
                     },
                    ],
                   },
                  },
                 ],
                },
                position: (90, 29),
               },
               position: (90, 26),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "mkInnerSectionString",
                 position: (91, 7),
                },
               ],
              },
              Function {
               argument: Some(
                "attrs",
               ),
               arguments: FunctionArguments {
                arguments: [],
                ellipsis: false,
               },
               definition: FunctionApplication {
                function: Variable {
                 identifier: "concatStringsSep",
                 position: (92, 16),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "\n",
                    position: (92, 34),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mapAttrsToList",
                   position: (92, 39),
                  },
                  arguments: [
                   Variable {
                    identifier: "mkKeyValueString",
                    position: (92, 54),
                   },
                   Variable {
                    identifier: "attrs",
                    position: (92, 71),
                   },
                  ],
                 },
                ],
               },
               position: (92, 9),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "mkAccountString",
                 position: (93, 7),
                },
               ],
              },
              Function {
               argument: Some(
                "name",
               ),
               arguments: FunctionArguments {
                arguments: [],
                ellipsis: false,
               },
               definition: Function {
                argument: Some(
                 "attrs",
                ),
                arguments: FunctionArguments {
                 arguments: [],
                 ellipsis: false,
                },
                definition: String {
                 parts: [
                  Raw {
                   content: "account ",
                   position: (94, 1),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "name",
                    position: (94, 19),
                   },
                  },
                  Raw {
                   content: "\n",
                   position: (94, 24),
                  },
                  Expression {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "mkInnerSectionString",
                     position: (95, 11),
                    },
                    arguments: [
                     Variable {
                      identifier: "attrs",
                      position: (95, 32),
                     },
                    ],
                   },
                  },
                  Raw {
                   content: "\n",
                   position: (95, 38),
                  },
                 ],
                },
                position: (93, 31),
               },
               position: (93, 25),
              },
             ),
            ],
            target: String {
             parts: [
              Raw {
               content: "defaults\n",
               position: (98, 1),
              },
              Expression {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "mkInnerSectionString",
                 position: (99, 9),
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (99, 30),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "defaults",
                     position: (99, 34),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              },
              Raw {
               content: "\n\n",
               position: (99, 43),
              },
              Expression {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "concatStringsSep",
                 position: (101, 9),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "\n",
                    position: (101, 27),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mapAttrsToList",
                   position: (101, 32),
                  },
                  arguments: [
                   Variable {
                    identifier: "mkAccountString",
                    position: (101, 47),
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (101, 63),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "accounts",
                       position: (101, 67),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ],
               },
              },
              Raw {
               content: "\n\n",
               position: (101, 77),
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (103, 9),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "extraConfig",
                   position: (103, 13),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "\n",
               position: (103, 25),
              },
             ],
            },
            position: (85, 38),
           },
          ),
         ],
         recursive: false,
         position: (73, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (8, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}