---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "pwCfg",
       position: (4, 3),
      },
     ],
    },
    to: PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (4, 11),
     },
     attribute_path: AttributePath {
      parts: [
       Raw {
        content: "services",
        position: (4, 18),
       },
       Raw {
        content: "pipewire",
        position: (4, 27),
       },
      ],
     },
     default: None,
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "cfg",
       position: (5, 3),
      },
     ],
    },
    to: PropertyAccess {
     expression: Variable {
      identifier: "pwCfg",
      position: (5, 9),
     },
     attribute_path: AttributePath {
      parts: [
       Raw {
        content: "wireplumber",
        position: (5, 15),
       },
      ],
     },
     default: None,
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "pwUsedForAudio",
       position: (6, 3),
      },
     ],
    },
    to: PropertyAccess {
     expression: Variable {
      identifier: "pwCfg",
      position: (6, 20),
     },
     attribute_path: AttributePath {
      parts: [
       Raw {
        content: "audio",
        position: (6, 26),
       },
       Raw {
        content: "enable",
        position: (6, 32),
       },
      ],
     },
     default: None,
    },
   },
  ],
  target: Map {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "meta",
        position: (9, 3),
       },
       Raw {
        content: "maintainers",
        position: (9, 8),
       },
      ],
     },
     to: List {
      elements: [
       PropertyAccess {
        expression: Variable {
         identifier: "lib",
         position: (9, 24),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "maintainers",
           position: (9, 28),
          },
          Raw {
           content: "k900",
           position: (9, 40),
          },
         ],
        },
        default: None,
       },
      ],
      position: (9, 22),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "options",
        position: (11, 3),
       },
      ],
     },
     to: Map {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "services",
           position: (12, 5),
          },
          Raw {
           content: "pipewire",
           position: (12, 14),
          },
          Raw {
           content: "wireplumber",
           position: (12, 23),
          },
         ],
        },
        to: Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "enable",
              position: (13, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (13, 16),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "mkOption",
                position: (13, 20),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (14, 9),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (14, 16),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "types",
                    position: (14, 20),
                   },
                   Raw {
                    content: "bool",
                    position: (14, 26),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (15, 9),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (15, 19),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "services",
                    position: (15, 26),
                   },
                   Raw {
                    content: "pipewire",
                    position: (15, 35),
                   },
                   Raw {
                    content: "enable",
                    position: (15, 44),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "defaultText",
                   position: (16, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (16, 23),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "literalExpression",
                     position: (16, 27),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "config.services.pipewire.enable",
                     position: (16, 46),
                    },
                   ],
                   position: (16, 45),
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (17, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Whether to enable Wireplumber, a modular session / policy manager for PipeWire",
                   position: (17, 24),
                  },
                 ],
                 position: (17, 23),
                },
               },
              ],
              recursive: false,
              position: (13, 29),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "package",
              position: (20, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (20, 17),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "mkOption",
                position: (20, 21),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (21, 9),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (21, 16),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "types",
                    position: (21, 20),
                   },
                   Raw {
                    content: "package",
                    position: (21, 26),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (22, 9),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (22, 19),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "wireplumber",
                    position: (22, 24),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "defaultText",
                   position: (23, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (23, 23),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "literalExpression",
                     position: (23, 27),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "pkgs.wireplumber",
                     position: (23, 46),
                    },
                   ],
                   position: (23, 45),
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (24, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "The wireplumber derivation to use.",
                   position: (24, 24),
                  },
                 ],
                 position: (24, 23),
                },
               },
              ],
              recursive: false,
              position: (20, 30),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (12, 37),
        },
       },
      ],
      recursive: false,
      position: (11, 13),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "config",
        position: (29, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (29, 12),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "mkIf",
          position: (29, 16),
         },
        ],
       },
       default: None,
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (29, 21),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "enable",
           position: (29, 25),
          },
         ],
        },
        default: None,
       },
       Map {
        bindings: [
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "assertions",
             position: (30, 5),
            },
           ],
          },
          to: List {
           elements: [
            Map {
             bindings: [
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "assertion",
                  position: (32, 9),
                 },
                ],
               },
               to: UnaryOperation {
                operator: Not,
                operand: PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (32, 22),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "services",
                    position: (32, 29),
                   },
                   Raw {
                    content: "pipewire",
                    position: (32, 38),
                   },
                   Raw {
                    content: "media-session",
                    position: (32, 47),
                   },
                   Raw {
                    content: "enable",
                    position: (32, 61),
                   },
                  ],
                 },
                 default: None,
                },
                position: (32, 21),
               },
              },
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "message",
                  position: (33, 9),
                 },
                ],
               },
               to: String {
                parts: [
                 Raw {
                  content: "WirePlumber and pipewire-media-session can't be enabled at the same time.",
                  position: (33, 20),
                 },
                ],
                position: (33, 19),
               },
              },
             ],
             recursive: false,
             position: (31, 7),
            },
           ],
           position: (30, 18),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "environment",
             position: (37, 5),
            },
            Raw {
             content: "systemPackages",
             position: (37, 17),
            },
           ],
          },
          to: List {
           elements: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (37, 36),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "package",
                position: (37, 40),
               },
              ],
             },
             default: None,
            },
           ],
           position: (37, 34),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "environment",
             position: (39, 5),
            },
            Raw {
             content: "etc",
             position: (39, 17),
            },
            Expression {
             ast: String {
              parts: [
               Raw {
                content: "wireplumber/main.lua.d/80-nixos.lua",
                position: (39, 22),
               },
              ],
              position: (39, 21),
             },
            },
           ],
          },
          to: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (39, 61),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "mkIf",
               position: (39, 65),
              },
             ],
            },
            default: None,
           },
           arguments: [
            Parentheses {
             expression: UnaryOperation {
              operator: Not,
              operand: Variable {
               identifier: "pwUsedForAudio",
               position: (39, 72),
              },
              position: (39, 71),
             },
             position: (39, 70),
            },
            Map {
             bindings: [
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "text",
                  position: (40, 6),
                 },
                ],
               },
               to: String {
                parts: [
                 Raw {
                  content: "-- Pipewire is not used for audio, so prevent it from grabbing audio devices\nalsa_monitor.enable = function() end\n",
                  position: (41, 1),
                 },
                ],
                position: (40, 13),
               },
              },
             ],
             recursive: false,
             position: (39, 88),
            },
           ],
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "systemd",
             position: (46, 5),
            },
            Raw {
             content: "packages",
             position: (46, 13),
            },
           ],
          },
          to: List {
           elements: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (46, 26),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "package",
                position: (46, 30),
               },
              ],
             },
             default: None,
            },
           ],
           position: (46, 24),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "systemd",
             position: (48, 5),
            },
            Raw {
             content: "services",
             position: (48, 13),
            },
            Raw {
             content: "wireplumber",
             position: (48, 22),
            },
            Raw {
             content: "enable",
             position: (48, 34),
            },
           ],
          },
          to: PropertyAccess {
           expression: Variable {
            identifier: "config",
            position: (48, 43),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "services",
              position: (48, 50),
             },
             Raw {
              content: "pipewire",
              position: (48, 59),
             },
             Raw {
              content: "systemWide",
              position: (48, 68),
             },
            ],
           },
           default: None,
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "systemd",
             position: (49, 5),
            },
            Raw {
             content: "user",
             position: (49, 13),
            },
            Raw {
             content: "services",
             position: (49, 18),
            },
            Raw {
             content: "wireplumber",
             position: (49, 27),
            },
            Raw {
             content: "enable",
             position: (49, 39),
            },
           ],
          },
          to: UnaryOperation {
           operator: Not,
           operand: PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (49, 49),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "services",
               position: (49, 56),
              },
              Raw {
               content: "pipewire",
               position: (49, 65),
              },
              Raw {
               content: "systemWide",
               position: (49, 74),
              },
             ],
            },
            default: None,
           },
           position: (49, 48),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "systemd",
             position: (51, 5),
            },
            Raw {
             content: "services",
             position: (51, 13),
            },
            Raw {
             content: "wireplumber",
             position: (51, 22),
            },
            Raw {
             content: "wantedBy",
             position: (51, 34),
            },
           ],
          },
          to: List {
           elements: [
            String {
             parts: [
              Raw {
               content: "pipewire.service",
               position: (51, 48),
              },
             ],
             position: (51, 47),
            },
           ],
           position: (51, 45),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "systemd",
             position: (52, 5),
            },
            Raw {
             content: "user",
             position: (52, 13),
            },
            Raw {
             content: "services",
             position: (52, 18),
            },
            Raw {
             content: "wireplumber",
             position: (52, 27),
            },
            Raw {
             content: "wantedBy",
             position: (52, 39),
            },
           ],
          },
          to: List {
           elements: [
            String {
             parts: [
              Raw {
               content: "pipewire.service",
               position: (52, 53),
              },
             ],
             position: (52, 52),
            },
           ],
           position: (52, 50),
          },
         },
        ],
        recursive: false,
        position: (29, 32),
       },
      ],
     },
    },
   ],
   recursive: false,
   position: (8, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}