Failed assertions: - WirePlumber and pipewire-media-session can't be enabled at the same time

Since I changed to the unstable channel (I like to live on the edge haha), I have been getting the following error when I try to run nixos-rebuild switch --upgrade:

       Failed assertions:
       - WirePlumber and pipewire-media-session can't be enabled at the same time.

I’m not sure how to fix it and I haven’t found much using Google.

I got the same error and was able to resolve it by commenting out the following line in my configuration.nix:

    media-session.enable = true;

wireplumber is a superior replacement for pipewire’s own media session implementation. You can have either one of the following enabled but not both:

services.pipewire.wireplumber.enable = true;
services.pipewire.media-session.enable = true;