Hey the new nixos wiki PipeWire - NixOS Wiki is missing a information about Pipewire on NixOS how to enable pipewire audio switch automatically on NixOS when i plug a headset ?
Did you figure out how to set this up in PipeWire in general?
I’m having the same issue here.
When I plug/unplug my headphones, it does not auto switch the output device.
One less than ideal solution is to install pavucontrol > open the GUI app > plug your headphones > open the Output Devices
tab > enable the checkmark option Set as fallback
My config is the default one, provided from PipeWire
{
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
audio.enable = true;
};
}
This isn’t really a NixOS question as this is just about regular upstream pipewire/wireplumber functionality.
I don’t know that this is how it works but for me it remembers that I have set a device as fall-back and switches back to it when I plug it in again.
Should you be using impermanence, ensure you’ve allowed such wireplumber state to persist as it couldn’t possibly do this without storing that state.