Trying to enable pipewire, audio not working

So on my machine I’ve added


  services.pipewire = {
    enable = true;
    pulse.enable = true;
    alsa = {
      enable = true;
      support32Bit = true;
    };
    config.pipewire = {
      "context.properties" = {
        #"link.max-buffers" = 64;
        "link.max-buffers" = 16; # version < 3 clients can't handle more than this
        "log.level" = 2; # https://docs.pipewire.org/#Logging
        #"default.clock.rate" = 48000;
        #"default.clock.quantum" = 1024;
        #"default.clock.min-quantum" = 32;
        #"default.clock.max-quantum" = 8192;
      };
    };

And yes, I’ve removed hardware.pulseaudio and sound.enable

However no sound come out of my speakers.

journalctl --user-unit=pipewire --user-unit=pipewire-media-session --user-unit=pipewire-pulse -f                                                                                                                                                                     ✔ 
-- Journal begins at Wed 2021-05-19 10:51:04 CEST. --
mag 20 17:32:33 nixos systemd[2317]: Stopped PipeWire PulseAudio.
mag 20 17:32:33 nixos systemd[2317]: pipewire-pulse.service: Consumed 10.460s CPU time.
mag 20 17:32:33 nixos systemd[2317]: Stopping Multimedia Service...
mag 20 17:32:33 nixos systemd[2317]: pipewire.service: Succeeded.
mag 20 17:32:33 nixos systemd[2317]: Stopped Multimedia Service.
mag 20 17:32:33 nixos systemd[2317]: pipewire.service: Consumed 10.865s CPU time.
-- Boot 23df629e63cf4730a06baa60c8be41ec --
mag 20 19:06:14 nixos systemd[2558]: Started Multimedia Service.
mag 20 19:06:14 nixos systemd[2558]: Started Multimedia Service Session Manager.
mag 20 19:06:14 nixos systemd[2558]: Started PipeWire PulseAudio.
mag 20 19:07:34 nixos pipewire-pulse[3474]: pulse-server 0x55acfc6457a0: [kwin_killer_helper] UNDERFLOW channel:0 offset:811008 underrun:32768

Nota that sound with pulseaudio works fine, I just want to try out pipewire.
Where can I begin to fix this?

So I’ve reenabled pipewire, and the problem seems to be:

  • While the rear altoparlants works, the front ones do not work, forcing me to use “Stereo sound” instead of “5.1” I’ve been using
  • The kde audio settings keep freezing after a few minutes open. This did not happen before.

Hi, did you ever definitively fix this? I’ve been trying for a long time (<-- just my latest plea for help) now. Here’s my config.

I also ran the same journalctl command you did and the output is here.

Basically, the problem is, no sound and the audio icon the KDE Plasma tray just says “No output or input devices found”. Would be amazing if you could advise.

Same exact issue with PulseAudio

I cannot help you,as my audio works with both PulseAudio and Pipewire and so my problem is different.
Begin with

  sound.enable = true; 
  hardware.pulseaudio.enable = true;
  services.pipewire.enable = false;

To begin troubleshooting with PulseAudio.
Also please begin a new thread.

Ok good idea, will do. Thank you.