---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 10),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (7, 17),
        },
        Raw {
         content: "salt",
         position: (7, 26),
        },
        Raw {
         content: "master",
         position: (7, 31),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "fullConfig",
        position: (9, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (9, 16),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "recursiveUpdate",
          position: (9, 20),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "default_include",
             position: (13, 5),
            },
           ],
          },
          to: String {
           parts: [
            Raw {
             content: "/var/lib/salt/master.d/*.conf",
             position: (13, 24),
            },
           ],
           position: (13, 23),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "pki_dir",
             position: (15, 5),
            },
           ],
          },
          to: String {
           parts: [
            Raw {
             content: "/var/lib/salt/pki/master",
             position: (15, 16),
            },
           ],
           position: (15, 15),
          },
         },
        ],
        recursive: false,
        position: (9, 36),
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (16, 5),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "configuration",
           position: (16, 9),
          },
         ],
        },
        default: None,
       },
      ],
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (21, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (22, 5),
           },
           Raw {
            content: "salt",
            position: (22, 14),
           },
           Raw {
            content: "master",
            position: (22, 19),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (23, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (23, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "Salt master service",
                 position: (23, 32),
                },
               ],
               position: (23, 31),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "configuration",
               position: (24, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (24, 23),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (25, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (25, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "attrs",
                     position: (25, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (26, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [],
                  recursive: false,
                  position: (26, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (27, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Salt master configuration as Nix attribute set.",
                    position: (27, 24),
                   },
                  ],
                  position: (27, 23),
                 },
                },
               ],
               recursive: false,
               position: (24, 32),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (22, 28),
         },
        },
       ],
       recursive: false,
       position: (21, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (32, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (32, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (32, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (32, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (33, 5),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "etc",
                 position: (38, 7),
                },
                Expression {
                 expression: String {
                  parts: [
                   Raw {
                    content: "salt/master",
                    position: (38, 12),
                   },
                  ],
                  position: (38, 11),
                 },
                },
                Raw {
                 content: "source",
                 position: (38, 25),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (38, 34),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "writeText",
                   position: (38, 39),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "master",
                   position: (38, 50),
                  },
                 ],
                 position: (38, 49),
                },
                Parentheses {
                 expression: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "builtins",
                    position: (39, 9),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "toJSON",
                      position: (39, 18),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   Variable {
                    identifier: "fullConfig",
                    position: (39, 25),
                   },
                  ],
                 },
                 position: (38, 58),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "systemPackages",
                 position: (41, 7),
                },
               ],
              },
              to: With {
               expression: Variable {
                identifier: "pkgs",
                position: (41, 29),
               },
               target: List {
                elements: [
                 Variable {
                  identifier: "salt",
                  position: (41, 37),
                 },
                ],
                position: (41, 35),
               },
               position: (41, 24),
              },
             },
            ],
            recursive: false,
            position: (33, 19),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (43, 5),
             },
             Raw {
              content: "services",
              position: (43, 13),
             },
             Raw {
              content: "salt-master",
              position: (43, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (44, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Salt Master",
                 position: (44, 22),
                },
               ],
               position: (44, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (45, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (45, 21),
                  },
                 ],
                 position: (45, 20),
                },
               ],
               position: (45, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "after",
                 position: (46, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (46, 18),
                  },
                 ],
                 position: (46, 17),
                },
               ],
               position: (46, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "path",
                 position: (47, 7),
                },
               ],
              },
              to: With {
               expression: Variable {
                identifier: "pkgs",
                position: (47, 19),
               },
               target: List {
                elements: [
                 Variable {
                  identifier: "util-linux",
                  position: (48, 9),
                 },
                ],
                position: (47, 25),
               },
               position: (47, 14),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (50, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "ExecStart",
                    position: (51, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (51, 24),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "salt",
                        position: (51, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/salt-master",
                    position: (51, 34),
                   },
                  ],
                  position: (51, 21),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "LimitNOFILE",
                    position: (52, 9),
                   },
                  ],
                 },
                 to: Int {
                  value: 16384,
                  position: (52, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "Type",
                    position: (53, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "notify",
                    position: (53, 17),
                   },
                  ],
                  position: (53, 16),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "NotifyAccess",
                    position: (54, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "all",
                    position: (54, 25),
                   },
                  ],
                  position: (54, 24),
                 },
                },
               ],
               recursive: false,
               position: (50, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "restartTriggers",
                 position: (56, 7),
                },
               ],
              },
              to: List {
               elements: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (57, 9),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "environment",
                    position: (57, 16),
                   },
                   Raw {
                    content: "etc",
                    position: (57, 28),
                   },
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "salt/master",
                       position: (57, 33),
                      },
                     ],
                     position: (57, 32),
                    },
                   },
                   Raw {
                    content: "source",
                    position: (57, 46),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (56, 25),
              },
             },
            ],
            recursive: false,
            position: (43, 36),
           },
          },
         ],
         recursive: false,
         position: (32, 28),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "meta",
         position: (62, 3),
        },
        Raw {
         content: "maintainers",
         position: (62, 8),
        },
       ],
      },
      to: With {
       expression: PropertyAccess {
        expression: Variable {
         identifier: "lib",
         position: (62, 27),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "maintainers",
           position: (62, 31),
          },
         ],
        },
        default: None,
       },
       target: List {
        elements: [
         Variable {
          identifier: "Flakebi",
          position: (62, 46),
         },
        ],
        position: (62, 44),
       },
       position: (62, 22),
      },
     },
    ],
    recursive: false,
    position: (20, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}