---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (5, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "drivers",
        position: (9, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (9, 13),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (9, 20),
        },
        Raw {
         content: "xserver",
         position: (9, 29),
        },
        Raw {
         content: "videoDrivers",
         position: (9, 37),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "enabled",
        position: (11, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: Variable {
       identifier: "elem",
       position: (11, 13),
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "amdgpu-pro",
          position: (11, 19),
         },
        ],
        position: (11, 18),
       },
       Variable {
        identifier: "drivers",
        position: (11, 31),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "package",
        position: (13, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (13, 13),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "boot",
         position: (13, 20),
        },
        Raw {
         content: "kernelPackages",
         position: (13, 25),
        },
        Raw {
         content: "amdgpu-pro",
         position: (13, 40),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "package32",
        position: (14, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (14, 15),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "pkgsi686Linux",
          position: (14, 20),
         },
         Raw {
          content: "linuxPackages",
          position: (14, 34),
         },
         Raw {
          content: "amdgpu-pro",
          position: (14, 48),
         },
         Raw {
          content: "override",
          position: (14, 59),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "kernel",
             position: (14, 70),
            },
           ],
          },
          to: Variable {
           identifier: "null",
           position: (14, 79),
          },
         },
        ],
        recursive: false,
        position: (14, 68),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "opengl",
        position: (16, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (16, 12),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "hardware",
         position: (16, 19),
        },
        Raw {
         content: "opengl",
         position: (16, 28),
        },
       ],
      },
      default: None,
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (22, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (22, 12),
       },
       arguments: [
        Variable {
         identifier: "enabled",
         position: (22, 17),
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "nixpkgs",
              position: (24, 5),
             },
             Raw {
              content: "config",
              position: (24, 13),
             },
             Raw {
              content: "xorg",
              position: (24, 20),
             },
             Raw {
              content: "abiCompat",
              position: (24, 25),
             },
            ],
           },
           to: String {
            parts: [
             Raw {
              content: "1.20",
              position: (24, 38),
             },
            ],
            position: (24, 37),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "services",
              position: (26, 5),
             },
             Raw {
              content: "xserver",
              position: (26, 14),
             },
             Raw {
              content: "drivers",
              position: (26, 22),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "singleton",
             position: (26, 32),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "name",
                   position: (27, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "amdgpu",
                   position: (27, 17),
                  },
                 ],
                 position: (27, 16),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "modules",
                   position: (27, 26),
                  },
                 ],
                },
                to: List {
                 elements: [
                  Variable {
                   identifier: "package",
                   position: (27, 38),
                  },
                 ],
                 position: (27, 36),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "display",
                   position: (27, 49),
                  },
                 ],
                },
                to: Variable {
                 identifier: "true",
                 position: (27, 59),
                },
               },
              ],
              recursive: false,
              position: (27, 7),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "hardware",
              position: (29, 5),
             },
             Raw {
              content: "opengl",
              position: (29, 14),
             },
             Raw {
              content: "package",
              position: (29, 21),
             },
            ],
           },
           to: Variable {
            identifier: "package",
            position: (29, 31),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "hardware",
              position: (30, 5),
             },
             Raw {
              content: "opengl",
              position: (30, 14),
             },
             Raw {
              content: "package32",
              position: (30, 21),
             },
            ],
           },
           to: Variable {
            identifier: "package32",
            position: (30, 33),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "hardware",
              position: (31, 5),
             },
             Raw {
              content: "opengl",
              position: (31, 14),
             },
             Raw {
              content: "setLdLibraryPath",
              position: (31, 21),
             },
            ],
           },
           to: Variable {
            identifier: "true",
            position: (31, 40),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "boot",
              position: (33, 5),
             },
             Raw {
              content: "extraModulePackages",
              position: (33, 10),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "package",
               position: (33, 34),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "kmod",
                 position: (33, 42),
                },
               ],
              },
              default: None,
             },
            ],
            position: (33, 32),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "boot",
              position: (35, 5),
             },
             Raw {
              content: "kernelPackages",
              position: (35, 10),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "pkgs",
              position: (35, 27),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "linuxKernel",
                position: (35, 32),
               },
               Raw {
                content: "packagesFor",
                position: (35, 44),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Parentheses {
              expression: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (36, 8),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "linuxKernel",
                   position: (36, 13),
                  },
                  Raw {
                   content: "kernels",
                   position: (36, 25),
                  },
                  Raw {
                   content: "linux_5_10",
                   position: (36, 33),
                  },
                  Raw {
                   content: "override",
                   position: (36, 44),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "structuredExtraConfig",
                      position: (37, 9),
                     },
                    ],
                   },
                   to: Map {
                    bindings: [
                     Binding {
                      from: AttributePath {
                       parts: [
                        Raw {
                         content: "DEVICE_PRIVATE",
                         position: (38, 11),
                        },
                       ],
                      },
                      to: PropertyAccess {
                       expression: Variable {
                        identifier: "kernel",
                        position: (38, 28),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "yes",
                          position: (38, 35),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Binding {
                      from: AttributePath {
                       parts: [
                        Raw {
                         content: "KALLSYMS_ALL",
                         position: (39, 11),
                        },
                       ],
                      },
                      to: PropertyAccess {
                       expression: Variable {
                        identifier: "kernel",
                        position: (39, 26),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "yes",
                          position: (39, 33),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                    ],
                    recursive: false,
                    position: (37, 33),
                   },
                  },
                 ],
                 recursive: false,
                 position: (36, 53),
                },
               ],
              },
              position: (36, 7),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "hardware",
              position: (43, 5),
             },
             Raw {
              content: "firmware",
              position: (43, 14),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "package",
               position: (43, 27),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "fw",
                 position: (43, 35),
                },
               ],
              },
              default: None,
             },
            ],
            position: (43, 25),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "system",
              position: (45, 5),
             },
             Raw {
              content: "activationScripts",
              position: (45, 12),
             },
             Raw {
              content: "setup-amdgpu-pro",
              position: (45, 30),
             },
            ],
           },
           to: String {
            parts: [
             Raw {
              content: "ln -sfn ",
              position: (46, 1),
             },
             Expression {
              expression: Variable {
               identifier: "package",
               position: (46, 17),
              },
             },
             Raw {
              content: "/opt/amdgpu{,-pro} /run\n",
              position: (46, 25),
             },
            ],
            position: (45, 49),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "system",
              position: (49, 5),
             },
             Raw {
              content: "requiredKernelConfig",
              position: (49, 12),
             },
            ],
           },
           to: With {
            expression: PropertyAccess {
             expression: Variable {
              identifier: "config",
              position: (49, 40),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "lib",
                position: (49, 47),
               },
               Raw {
                content: "kernelConfig",
                position: (49, 51),
               },
              ],
             },
             default: None,
            },
            target: List {
             elements: [
              Parentheses {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "isYes",
                 position: (50, 8),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "DEVICE_PRIVATE",
                    position: (50, 15),
                   },
                  ],
                  position: (50, 14),
                 },
                ],
               },
               position: (50, 7),
              },
              Parentheses {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "isYes",
                 position: (51, 8),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "KALLSYMS_ALL",
                    position: (51, 15),
                   },
                  ],
                  position: (51, 14),
                 },
                ],
               },
               position: (51, 7),
              },
             ],
             position: (49, 65),
            },
            position: (49, 35),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "boot",
              position: (54, 5),
             },
             Raw {
              content: "initrd",
              position: (54, 10),
             },
             Raw {
              content: "extraUdevRulesCommands",
              position: (54, 17),
             },
            ],
           },
           to: String {
            parts: [
             Raw {
              content: "cp -v ",
              position: (55, 1),
             },
             Expression {
              expression: Variable {
               identifier: "package",
               position: (55, 15),
              },
             },
             Raw {
              content: "/etc/udev/rules.d/*.rules $out/\n",
              position: (55, 23),
             },
            ],
            position: (54, 42),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (58, 5),
             },
             Raw {
              content: "systemPackages",
              position: (58, 17),
             },
            ],
           },
           to: BinaryOperation {
            operator: Concatenation,
            operands: [
             List {
              elements: [
               PropertyAccess {
                expression: Variable {
                 identifier: "package",
                 position: (59, 9),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "vulkan",
                   position: (59, 17),
                  },
                 ],
                },
                default: None,
               },
              ],
              position: (59, 7),
             },
             FunctionApplication {
              function: Variable {
               identifier: "optional",
               position: (61, 7),
              },
              arguments: [
               PropertyAccess {
                expression: Variable {
                 identifier: "config",
                 position: (61, 16),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "hardware",
                   position: (61, 23),
                  },
                  Raw {
                   content: "opengl",
                   position: (61, 32),
                  },
                  Raw {
                   content: "driSupport32Bit",
                   position: (61, 39),
                  },
                 ],
                },
                default: None,
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "package32",
                 position: (61, 55),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "vulkan",
                   position: (61, 65),
                  },
                 ],
                },
                default: None,
               },
              ],
             },
            ],
            position: (59, 26),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (63, 5),
             },
             Raw {
              content: "etc",
              position: (63, 17),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Expression {
                 expression: String {
                  parts: [
                   Raw {
                    content: "modprobe.d/blacklist-radeon.conf",
                    position: (64, 8),
                   },
                  ],
                  position: (64, 7),
                 },
                },
                Raw {
                 content: "source",
                 position: (64, 42),
                },
               ],
              },
              to: BinaryOperation {
               operator: Addition,
               operands: [
                Variable {
                 identifier: "package",
                 position: (64, 51),
                },
                String {
                 parts: [
                  Raw {
                   content: "/etc/modprobe.d/blacklist-radeon.conf",
                   position: (64, 62),
                  },
                 ],
                 position: (64, 61),
                },
               ],
               position: (64, 59),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "amd",
                 position: (65, 7),
                },
                Raw {
                 content: "source",
                 position: (65, 11),
                },
               ],
              },
              to: BinaryOperation {
               operator: Addition,
               operands: [
                Variable {
                 identifier: "package",
                 position: (65, 20),
                },
                String {
                 parts: [
                  Raw {
                   content: "/etc/amd",
                   position: (65, 31),
                  },
                 ],
                 position: (65, 30),
                },
               ],
               position: (65, 28),
              },
             },
            ],
            recursive: false,
            position: (63, 23),
           },
          },
         ],
         recursive: false,
         position: (22, 25),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (20, 1),
   },
   position: (7, 1),
  },
  position: (5, 1),
 },
 position: (3, 1),
}