Function(
 Function {
  head: Destructured(
   FunctionHeadDestructured {
    ellipsis: true,
    identifier: None,
    arguments: [
     FunctionHeadDestructuredArgument {
      identifier: "config",
      default: None,
     },
     FunctionHeadDestructuredArgument {
      identifier: "lib",
      default: None,
     },
    ],
   },
  ),
  body: With(
   With {
    expression: Identifier(
     Identifier {
      id: "lib",
      span: Span {
       start: Position {
        line: 3,
        column: 6,
       },
       end: Position {
        line: 3,
        column: 9,
       },
      },
     },
    ),
    target: LetIn(
     LetIn {
      bindings: [
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "cfg",
            span: Span {
             start: Position {
              line: 6,
              column: 3,
             },
             end: Position {
              line: 6,
              column: 6,
             },
            },
           },
          ),
         ],
         to: PropertyAccess(
          PropertyAccess {
           expression: Identifier(
            Identifier {
             id: "config",
             span: Span {
              start: Position {
               line: 6,
               column: 9,
              },
              end: Position {
               line: 6,
               column: 15,
              },
             },
            },
           ),
           attribute_path: [
            Raw(
             PartRaw {
              content: "system",
              span: Span {
               start: Position {
                line: 6,
                column: 16,
               },
               end: Position {
                line: 6,
                column: 22,
               },
              },
             },
            ),
            Raw(
             PartRaw {
              content: "nixos",
              span: Span {
               start: Position {
                line: 6,
                column: 23,
               },
               end: Position {
                line: 6,
                column: 28,
               },
              },
             },
            ),
           ],
           default: None,
          },
         ),
        },
       ),
      ],
      target: Map(
       Map {
        recursive: false,
        bindings: [
         KeyValue(
          BindingKeyValue {
           from: [
            Raw(
             PartRaw {
              content: "options",
              span: Span {
               start: Position {
                line: 11,
                column: 3,
               },
               end: Position {
                line: 11,
                column: 10,
               },
              },
             },
            ),
            Raw(
             PartRaw {
              content: "system",
              span: Span {
               start: Position {
                line: 11,
                column: 11,
               },
               end: Position {
                line: 11,
                column: 17,
               },
              },
             },
            ),
           ],
           to: Map(
            Map {
             recursive: false,
             bindings: [
              KeyValue(
               BindingKeyValue {
                from: [
                 Raw(
                  PartRaw {
                   content: "nixos",
                   span: Span {
                    start: Position {
                     line: 13,
                     column: 5,
                    },
                    end: Position {
                     line: 13,
                     column: 10,
                    },
                   },
                  },
                 ),
                 Raw(
                  PartRaw {
                   content: "label",
                   span: Span {
                    start: Position {
                     line: 13,
                     column: 11,
                    },
                    end: Position {
                     line: 13,
                     column: 16,
                    },
                   },
                  },
                 ),
                ],
                to: FunctionApplication(
                 FunctionApplication {
                  function: Identifier(
                   Identifier {
                    id: "mkOption",
                    span: Span {
                     start: Position {
                      line: 13,
                      column: 19,
                     },
                     end: Position {
                      line: 13,
                      column: 27,
                     },
                    },
                   },
                  ),
                  arguments: [
                   Map(
                    Map {
                     recursive: false,
                     bindings: [
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "type",
                           span: Span {
                            start: Position {
                             line: 14,
                             column: 7,
                            },
                            end: Position {
                             line: 14,
                             column: 11,
                            },
                           },
                          },
                         ),
                        ],
                        to: FunctionApplication(
                         FunctionApplication {
                          function: PropertyAccess(
                           PropertyAccess {
                            expression: Identifier(
                             Identifier {
                              id: "types",
                              span: Span {
                               start: Position {
                                line: 14,
                                column: 14,
                               },
                               end: Position {
                                line: 14,
                                column: 19,
                               },
                              },
                             },
                            ),
                            attribute_path: [
                             Raw(
                              PartRaw {
                               content: "strMatching",
                               span: Span {
                                start: Position {
                                 line: 14,
                                 column: 20,
                                },
                                end: Position {
                                 line: 14,
                                 column: 31,
                                },
                               },
                              },
                             ),
                            ],
                            default: None,
                           },
                          ),
                          arguments: [
                           String(
                            String_ {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "[a-zA-Z0-9:_\\.-]*",
                                span: Span {
                                 start: Position {
                                  line: 14,
                                  column: 33,
                                 },
                                 end: Position {
                                  line: 14,
                                  column: 51,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 14,
                               column: 32,
                              },
                              end: Position {
                               line: 14,
                               column: 52,
                              },
                             },
                            },
                           ),
                          ],
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "description",
                           span: Span {
                            start: Position {
                             line: 15,
                             column: 7,
                            },
                            end: Position {
                             line: 15,
                             column: 18,
                            },
                           },
                          },
                         ),
                        ],
                        to: FunctionApplication(
                         FunctionApplication {
                          function: PropertyAccess(
                           PropertyAccess {
                            expression: Identifier(
                             Identifier {
                              id: "lib",
                              span: Span {
                               start: Position {
                                line: 15,
                                column: 21,
                               },
                               end: Position {
                                line: 15,
                                column: 24,
                               },
                              },
                             },
                            ),
                            attribute_path: [
                             Raw(
                              PartRaw {
                               content: "mdDoc",
                               span: Span {
                                start: Position {
                                 line: 15,
                                 column: 25,
                                },
                                end: Position {
                                 line: 15,
                                 column: 30,
                                },
                               },
                              },
                             ),
                            ],
                            default: None,
                           },
                          ),
                          arguments: [
                           IndentedString(
                            IndentedString {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "NixOS version name to be used in the names of generated\noutputs and boot labels.\n\nIf you ever wanted to influence the labels in your GRUB menu,\nthis is the option for you.\n\nIt can only contain letters, numbers and the following symbols:\n`:`, `_`, `.` and `-`.\n\nThe default is {option}`system.nixos.tags` separated by\n\"-\" + \"-\" + {env}`NIXOS_LABEL_VERSION` environment\nvariable (defaults to the value of\n{option}`system.nixos.version`).\n\nCan be overriden by setting {env}`NIXOS_LABEL`.\n\nUseful for not loosing track of configurations built from different\nnixos branches/revisions, e.g.:\n\n```\n#!/bin/sh\ntoday=`date +%Y%m%d`\nbranch=`(cd nixpkgs ; git branch 2>/dev/null | sed -n '/^\\* / { s|^\\* ||; p; }')`\nrevision=`(cd nixpkgs ; git rev-parse HEAD)`\nexport NIXOS_LABEL_VERSION=\"$today.$branch-",
                                span: Span {
                                 start: Position {
                                  line: 16,
                                  column: 1,
                                 },
                                 end: Position {
                                  line: 40,
                                  column: 52,
                                 },
                                },
                               },
                              ),
                              Raw(
                               PartRaw {
                                content: "$",
                                span: Span {
                                 start: Position {
                                  line: 16,
                                  column: 1,
                                 },
                                 end: Position {
                                  line: 40,
                                  column: 55,
                                 },
                                },
                               },
                              ),
                              Raw(
                               PartRaw {
                                content: "{revision:0:7}\"\nnixos-rebuild switch\n```\n",
                                span: Span {
                                 start: Position {
                                  line: 16,
                                  column: 1,
                                 },
                                 end: Position {
                                  line: 43,
                                  column: 7,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 15,
                               column: 31,
                              },
                              end: Position {
                               line: 43,
                               column: 9,
                              },
                             },
                            },
                           ),
                          ],
                         },
                        ),
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 13,
                       column: 28,
                      },
                      end: Position {
                       line: 44,
                       column: 6,
                      },
                     },
                    },
                   ),
                  ],
                 },
                ),
               },
              ),
              KeyValue(
               BindingKeyValue {
                from: [
                 Raw(
                  PartRaw {
                   content: "nixos",
                   span: Span {
                    start: Position {
                     line: 46,
                     column: 5,
                    },
                    end: Position {
                     line: 46,
                     column: 10,
                    },
                   },
                  },
                 ),
                 Raw(
                  PartRaw {
                   content: "tags",
                   span: Span {
                    start: Position {
                     line: 46,
                     column: 11,
                    },
                    end: Position {
                     line: 46,
                     column: 15,
                    },
                   },
                  },
                 ),
                ],
                to: FunctionApplication(
                 FunctionApplication {
                  function: Identifier(
                   Identifier {
                    id: "mkOption",
                    span: Span {
                     start: Position {
                      line: 46,
                      column: 18,
                     },
                     end: Position {
                      line: 46,
                      column: 26,
                     },
                    },
                   },
                  ),
                  arguments: [
                   Map(
                    Map {
                     recursive: false,
                     bindings: [
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "type",
                           span: Span {
                            start: Position {
                             line: 47,
                             column: 7,
                            },
                            end: Position {
                             line: 47,
                             column: 11,
                            },
                           },
                          },
                         ),
                        ],
                        to: FunctionApplication(
                         FunctionApplication {
                          function: PropertyAccess(
                           PropertyAccess {
                            expression: Identifier(
                             Identifier {
                              id: "types",
                              span: Span {
                               start: Position {
                                line: 47,
                                column: 14,
                               },
                               end: Position {
                                line: 47,
                                column: 19,
                               },
                              },
                             },
                            ),
                            attribute_path: [
                             Raw(
                              PartRaw {
                               content: "listOf",
                               span: Span {
                                start: Position {
                                 line: 47,
                                 column: 20,
                                },
                                end: Position {
                                 line: 47,
                                 column: 26,
                                },
                               },
                              },
                             ),
                            ],
                            default: None,
                           },
                          ),
                          arguments: [
                           PropertyAccess(
                            PropertyAccess {
                             expression: Identifier(
                              Identifier {
                               id: "types",
                               span: Span {
                                start: Position {
                                 line: 47,
                                 column: 27,
                                },
                                end: Position {
                                 line: 47,
                                 column: 32,
                                },
                               },
                              },
                             ),
                             attribute_path: [
                              Raw(
                               PartRaw {
                                content: "str",
                                span: Span {
                                 start: Position {
                                  line: 47,
                                  column: 33,
                                 },
                                 end: Position {
                                  line: 47,
                                  column: 36,
                                 },
                                },
                               },
                              ),
                             ],
                             default: None,
                            },
                           ),
                          ],
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "default",
                           span: Span {
                            start: Position {
                             line: 48,
                             column: 7,
                            },
                            end: Position {
                             line: 48,
                             column: 14,
                            },
                           },
                          },
                         ),
                        ],
                        to: List(
                         List {
                          elements: [],
                          span: Span {
                           start: Position {
                            line: 48,
                            column: 17,
                           },
                           end: Position {
                            line: 48,
                            column: 19,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "example",
                           span: Span {
                            start: Position {
                             line: 49,
                             column: 7,
                            },
                            end: Position {
                             line: 49,
                             column: 14,
                            },
                           },
                          },
                         ),
                        ],
                        to: List(
                         List {
                          elements: [
                           String(
                            String_ {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "with-xen",
                                span: Span {
                                 start: Position {
                                  line: 49,
                                  column: 20,
                                 },
                                 end: Position {
                                  line: 49,
                                  column: 28,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 49,
                               column: 19,
                              },
                              end: Position {
                               line: 49,
                               column: 29,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 49,
                            column: 17,
                           },
                           end: Position {
                            line: 49,
                            column: 31,
                           },
                          },
                         },
                        ),
                       },
                      ),
                      KeyValue(
                       BindingKeyValue {
                        from: [
                         Raw(
                          PartRaw {
                           content: "description",
                           span: Span {
                            start: Position {
                             line: 50,
                             column: 7,
                            },
                            end: Position {
                             line: 50,
                             column: 18,
                            },
                           },
                          },
                         ),
                        ],
                        to: FunctionApplication(
                         FunctionApplication {
                          function: PropertyAccess(
                           PropertyAccess {
                            expression: Identifier(
                             Identifier {
                              id: "lib",
                              span: Span {
                               start: Position {
                                line: 50,
                                column: 21,
                               },
                               end: Position {
                                line: 50,
                                column: 24,
                               },
                              },
                             },
                            ),
                            attribute_path: [
                             Raw(
                              PartRaw {
                               content: "mdDoc",
                               span: Span {
                                start: Position {
                                 line: 50,
                                 column: 25,
                                },
                                end: Position {
                                 line: 50,
                                 column: 30,
                                },
                               },
                              },
                             ),
                            ],
                            default: None,
                           },
                          ),
                          arguments: [
                           IndentedString(
                            IndentedString {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "Strings to prefix to the default\n{option}`system.nixos.label`.\n\nUseful for not loosing track of configurations built with\ndifferent options, e.g.:\n\n```\n{\n  system.nixos.tags = [ \"with-xen\" ];\n  virtualisation.xen.enable = true;\n}\n```\n",
                                span: Span {
                                 start: Position {
                                  line: 51,
                                  column: 1,
                                 },
                                 end: Position {
                                  line: 63,
                                  column: 7,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 50,
                               column: 31,
                              },
                              end: Position {
                               line: 63,
                               column: 9,
                              },
                             },
                            },
                           ),
                          ],
                         },
                        ),
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 46,
                       column: 27,
                      },
                      end: Position {
                       line: 64,
                       column: 6,
                      },
                     },
                    },
                   ),
                  ],
                 },
                ),
               },
              ),
             ],
             span: Span {
              start: Position {
               line: 11,
               column: 20,
              },
              end: Position {
               line: 66,
               column: 4,
              },
             },
            },
           ),
          },
         ),
         KeyValue(
          BindingKeyValue {
           from: [
            Raw(
             PartRaw {
              content: "config",
              span: Span {
               start: Position {
                line: 68,
                column: 3,
               },
               end: Position {
                line: 68,
                column: 9,
               },
              },
             },
            ),
           ],
           to: Map(
            Map {
             recursive: false,
             bindings: [
              KeyValue(
               BindingKeyValue {
                from: [
                 Raw(
                  PartRaw {
                   content: "system",
                   span: Span {
                    start: Position {
                     line: 71,
                     column: 5,
                    },
                    end: Position {
                     line: 71,
                     column: 11,
                    },
                   },
                  },
                 ),
                 Raw(
                  PartRaw {
                   content: "nixos",
                   span: Span {
                    start: Position {
                     line: 71,
                     column: 12,
                    },
                    end: Position {
                     line: 71,
                     column: 17,
                    },
                   },
                  },
                 ),
                 Raw(
                  PartRaw {
                   content: "label",
                   span: Span {
                    start: Position {
                     line: 71,
                     column: 18,
                    },
                    end: Position {
                     line: 71,
                     column: 23,
                    },
                   },
                  },
                 ),
                ],
                to: FunctionApplication(
                 FunctionApplication {
                  function: Identifier(
                   Identifier {
                    id: "mkDefault",
                    span: Span {
                     start: Position {
                      line: 71,
                      column: 26,
                     },
                     end: Position {
                      line: 71,
                      column: 35,
                     },
                    },
                   },
                  ),
                  arguments: [
                   FunctionApplication(
                    FunctionApplication {
                     function: Identifier(
                      Identifier {
                       id: "maybeEnv",
                       span: Span {
                        start: Position {
                         line: 71,
                         column: 37,
                        },
                        end: Position {
                         line: 71,
                         column: 45,
                        },
                       },
                      },
                     ),
                     arguments: [
                      String(
                       String_ {
                        parts: [
                         Raw(
                          PartRaw {
                           content: "NIXOS_LABEL",
                           span: Span {
                            start: Position {
                             line: 71,
                             column: 47,
                            },
                            end: Position {
                             line: 71,
                             column: 58,
                            },
                           },
                          },
                         ),
                        ],
                        span: Span {
                         start: Position {
                          line: 71,
                          column: 46,
                         },
                         end: Position {
                          line: 71,
                          column: 59,
                         },
                        },
                       },
                      ),
                      FunctionApplication(
                       FunctionApplication {
                        function: Identifier(
                         Identifier {
                          id: "concatStringsSep",
                          span: Span {
                           start: Position {
                            line: 72,
                            column: 47,
                           },
                           end: Position {
                            line: 72,
                            column: 63,
                           },
                          },
                         },
                        ),
                        arguments: [
                         String(
                          String_ {
                           parts: [
                            Raw(
                             PartRaw {
                              content: "-",
                              span: Span {
                               start: Position {
                                line: 72,
                                column: 65,
                               },
                               end: Position {
                                line: 72,
                                column: 66,
                               },
                              },
                             },
                            ),
                           ],
                           span: Span {
                            start: Position {
                             line: 72,
                             column: 64,
                            },
                            end: Position {
                             line: 72,
                             column: 67,
                            },
                           },
                          },
                         ),
                         BinaryOperation(
                          BinaryOperation {
                           left: FunctionApplication(
                            FunctionApplication {
                             function: Identifier(
                              Identifier {
                               id: "sort",
                               span: Span {
                                start: Position {
                                 line: 72,
                                 column: 70,
                                },
                                end: Position {
                                 line: 72,
                                 column: 74,
                                },
                               },
                              },
                             ),
                             arguments: [
                              Function(
                               Function {
                                head: Simple(
                                 FunctionHeadSimple {
                                  identifier: "x",
                                 },
                                ),
                                body: Function(
                                 Function {
                                  head: Simple(
                                   FunctionHeadSimple {
                                    identifier: "y",
                                   },
                                  ),
                                  body: BinaryOperation(
                                   BinaryOperation {
                                    left: Identifier(
                                     Identifier {
                                      id: "x",
                                      span: Span {
                                       start: Position {
                                        line: 72,
                                        column: 82,
                                       },
                                       end: Position {
                                        line: 72,
                                        column: 83,
                                       },
                                      },
                                     },
                                    ),
                                    operator: LessThan,
                                    right: Identifier(
                                     Identifier {
                                      id: "y",
                                      span: Span {
                                       start: Position {
                                        line: 72,
                                        column: 86,
                                       },
                                       end: Position {
                                        line: 72,
                                        column: 87,
                                       },
                                      },
                                     },
                                    ),
                                   },
                                  ),
                                  span: Span {
                                   start: Position {
                                    line: 72,
                                    column: 79,
                                   },
                                   end: Position {
                                    line: 72,
                                    column: 87,
                                   },
                                  },
                                 },
                                ),
                                span: Span {
                                 start: Position {
                                  line: 72,
                                  column: 76,
                                 },
                                 end: Position {
                                  line: 72,
                                  column: 87,
                                 },
                                },
                               },
                              ),
                              PropertyAccess(
                               PropertyAccess {
                                expression: Identifier(
                                 Identifier {
                                  id: "cfg",
                                  span: Span {
                                   start: Position {
                                    line: 72,
                                    column: 89,
                                   },
                                   end: Position {
                                    line: 72,
                                    column: 92,
                                   },
                                  },
                                 },
                                ),
                                attribute_path: [
                                 Raw(
                                  PartRaw {
                                   content: "tags",
                                   span: Span {
                                    start: Position {
                                     line: 72,
                                     column: 93,
                                    },
                                    end: Position {
                                     line: 72,
                                     column: 97,
                                    },
                                   },
                                  },
                                 ),
                                ],
                                default: None,
                               },
                              ),
                             ],
                            },
                           ),
                           operator: Concatenation,
                           right: List(
                            List {
                             elements: [
                              FunctionApplication(
                               FunctionApplication {
                                function: Identifier(
                                 Identifier {
                                  id: "maybeEnv",
                                  span: Span {
                                   start: Position {
                                    line: 73,
                                    column: 53,
                                   },
                                   end: Position {
                                    line: 73,
                                    column: 61,
                                   },
                                  },
                                 },
                                ),
                                arguments: [
                                 String(
                                  String_ {
                                   parts: [
                                    Raw(
                                     PartRaw {
                                      content: "NIXOS_LABEL_VERSION",
                                      span: Span {
                                       start: Position {
                                        line: 73,
                                        column: 63,
                                       },
                                       end: Position {
                                        line: 73,
                                        column: 82,
                                       },
                                      },
                                     },
                                    ),
                                   ],
                                   span: Span {
                                    start: Position {
                                     line: 73,
                                     column: 62,
                                    },
                                    end: Position {
                                     line: 73,
                                     column: 83,
                                    },
                                   },
                                  },
                                 ),
                                 PropertyAccess(
                                  PropertyAccess {
                                   expression: Identifier(
                                    Identifier {
                                     id: "cfg",
                                     span: Span {
                                      start: Position {
                                       line: 73,
                                       column: 84,
                                      },
                                      end: Position {
                                       line: 73,
                                       column: 87,
                                      },
                                     },
                                    },
                                   ),
                                   attribute_path: [
                                    Raw(
                                     PartRaw {
                                      content: "version",
                                      span: Span {
                                       start: Position {
                                        line: 73,
                                        column: 88,
                                       },
                                       end: Position {
                                        line: 73,
                                        column: 95,
                                       },
                                      },
                                     },
                                    ),
                                   ],
                                   default: None,
                                  },
                                 ),
                                ],
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 73,
                               column: 50,
                              },
                              end: Position {
                               line: 73,
                               column: 98,
                              },
                             },
                            },
                           ),
                          },
                         ),
                        ],
                       },
                      ),
                     ],
                    },
                   ),
                  ],
                 },
                ),
               },
              ),
             ],
             span: Span {
              start: Position {
               line: 68,
               column: 12,
              },
              end: Position {
               line: 74,
               column: 4,
              },
             },
            },
           ),
          },
         ),
        ],
        span: Span {
         start: Position {
          line: 9,
          column: 1,
         },
         end: Position {
          line: 76,
          column: 2,
         },
        },
       },
      ),
      span: Span {
       start: Position {
        line: 5,
        column: 1,
       },
       end: Position {
        line: 76,
        column: 2,
       },
      },
     },
    ),
    span: Span {
     start: Position {
      line: 3,
      column: 1,
     },
     end: Position {
      line: 76,
      column: 2,
     },
    },
   },
  ),
  span: Span {
   start: Position {
    line: 1,
    column: 1,
   },
   end: Position {
    line: 76,
    column: 2,
   },
  },
 },
)