Plasma Pulse Audio: No sound mixer controls, but audio (Pipewire/Wireplumber) still works on NixOS 24.05

Edit: Fixed by adding

environment.systemPackages = [ ...
                               kdePackages.plasma-pa
]

I am unable to select default output or input devices on the system level anymore (Such as through the volume mixer widget in the panel), but if the app (discord) itself includes those controls, I am able to choose in its menu. I would like to get the volume mixer back

Under “System Settings” → “Audio”:

Could not load plugin from /nix/store/mmcma11p38ha07274vfdpldzasd251lh-plasma-pa-5.27.11/lib/qt-5.15.12/plugins/plasma/kcms/systemsettings/kcm_pulseaudio.so: The plugin ‘/nix/store/mmcma11p38ha07274vfdpldzasd251lh-plasma-pa-5.27.11/lib/qt-5.15.12/plugins/plasma/kcms/systemsettings/kcm_pulseaudio.so’ uses incompatible Qt library. (5.15.0) [release]

Outputs from journalctl for pipewire and wireplumber:

May 31 16:09:28 nixos wireplumber[1599]: device number invalid for v4l2 device:nil
May 31 16:09:28 nixos wireplumber[1599]: org.bluez.GattManager1.RegisterApplication() failed: GDBus.Error:org.bluez.Error.Failed: Failed to create entry in database
May 31 16:09:28 nixos wireplumber[1599]: device number invalid for libcamera device:libcamera_device.\_SB_.PCI0.XHC_.RHUB.HS07-7:1.0-17ef:4831
May 31 16:09:28 nixos pipewire[1598]: [0:06:26.792206815] [1598]  INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
May 31 16:09:28 nixos pipewire[1598]: [0:06:26.792300648] [1598]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0
May 31 16:10:10 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 16:10:10 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 17:37:30 nixos pipewire[1598]: mod.client-node: 0x55d19e9b5ae0: unknown peer 0x55d19e377700 fd:85
May 31 17:37:30 nixos pipewire[1598]: mod.client-node: 0x55d19de68df0: unknown peer 0x55d19e3a68c0 fd:89
May 31 17:38:18 nixos pipewire[1598]: mod.client-node: 0x55d19e59f0b0: unknown peer 0x55d19e377700 fd:99
May 31 17:45:33 nixos pipewire[1598]: mod.client-node: 0x55d19e3a5fd0: unknown peer 0x55d19e5731b0 fd:94
May 31 17:45:33 nixos pipewire[1598]: mod.client-node: 0x55d19e46e1b0: unknown peer 0x55d19e377700 fd:105
May 31 17:54:30 nixos pipewire[1598]: mod.client-node: 0x55d19e9b4c70: unknown peer 0x55d19e3a68c0 fd:92
May 31 17:54:30 nixos pipewire[1598]: mod.client-node: 0x55d19e4ca5e0: unknown peer 0x55d19e5400b0 fd:106
May 31 18:12:00 nixos pipewire[1598]: mod.client-node: 0x55d19e8f8640: unknown peer 0x55d19e8f8f80 fd:165
May 31 18:12:00 nixos pipewire[1598]: mod.client-node: 0x55d19eb8e400: unknown peer 0x55d19eb8ed40 fd:167
May 31 18:12:00 nixos pipewire[1598]: mod.client-node: 0x55d19eb92df0: unknown peer 0x55d19e635540 fd:169
May 31 18:12:00 nixos pipewire[1598]: mod.client-node: 0x55d19e516a90: unknown peer 0x55d19e4e8fa0 fd:153
May 31 18:12:00 nixos pipewire[1598]: mod.client-node: 0x55d19e512b30: unknown peer 0x55d19e4eb130 fd:155
May 31 18:15:24 nixos wireplumber[1599]: <WpAsyncEventHook:0x18b1b50> failed: <WpSiStandardLink:0x1caf8f0> link failed: some node was destroyed before the link was created
May 31 18:15:25 nixos wireplumber[1599]: <WpAsyncEventHook:0x18b1b50> failed: <WpSiStandardLink:0x1c389f0> link failed: some node was destroyed before the link was created
May 31 18:15:25 nixos pipewire[1598]: mod.client-node: 0x55d19e8f5360: unknown peer 0x55d19e4ef760 fd:116
May 31 20:59:17 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 20:59:17 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 20:59:17 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 20:59:17 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 20:59:18 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 20:59:18 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 20:59:25 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 20:59:25 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 21:31:33 nixos wireplumber[1599]: <WpAsyncEventHook:0x18b1b50> failed: <WpSiStandardLink:0x1c00c50> link failed: some node was destroyed before the link was created
May 31 22:06:18 nixos wireplumber[1599]: <WpAsyncEventHook:0x18b1b50> failed: <WpSiStandardLink:0x19af520> link failed: some node was destroyed before the link was created
May 31 23:28:04 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 23:28:04 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 23:28:04 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 23:28:04 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
May 31 23:28:04 nixos wireplumber[1599]: [string "alsa.lua"]:178: table index is nil
                                         stack traceback:
                                                 [string "alsa.lua"]:178: in function <[string "alsa.lua"]:172>
-- Boot d738a44d0ec9478a93f85858b4104323 --
Jun 01 08:53:52 nixos systemd[1482]: Started PipeWire Multimedia Service.
Jun 01 08:53:52 nixos systemd[1482]: Started Multimedia Service Session Manager.
Jun 01 08:53:52 nixos pipewire[1573]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.ServiceUnknown: The name org.jackaudio.service was not provided by any .service files
Jun 01 08:53:53 nixos wireplumber[1574]: The decibel volume range for element 'Speaker' (-4000 dB - -900 dB) has negative maximum. Disabling the decibel range.
Jun 01 08:53:53 nixos wireplumber[1574]: The decibel volume range for element 'Speaker' (-4000 dB - -900 dB) has negative maximum. Disabling the decibel range.
Jun 01 08:53:53 nixos wireplumber[1574]: The decibel volume range for element 'Speaker' (-4000 dB - -900 dB) has negative maximum. Disabling the decibel range.
Jun 01 08:53:53 nixos wireplumber[1574]: The decibel volume range for element 'Speaker' (-4000 dB - -900 dB) has negative maximum. Disabling the decibel range.
Jun 01 08:53:53 nixos wireplumber[1574]: [0:00:54.862683328] [1574]  INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
Jun 01 08:53:53 nixos wireplumber[1574]: [0:00:54.863946665] [1574]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0
Jun 01 08:53:53 nixos wireplumber[1574]: device number invalid for v4l2 device:nil
Jun 01 08:53:53 nixos wireplumber[1574]: org.bluez.GattManager1.RegisterApplication() failed: GDBus.Error:org.bluez.Error.Failed: Failed to create entry in database
Jun 01 08:53:53 nixos wireplumber[1574]: device number invalid for libcamera device:libcamera_device.\_SB_.PCI0.XHC_.RHUB.HS07-7:1.0-17ef:4831
Jun 01 08:53:53 nixos pipewire[1573]: [0:00:54.898008800] [1573]  INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
Jun 01 08:53:53 nixos pipewire[1573]: [0:00:54.898106507] [1573]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0

My sound config:


  # Enable sound with pipewire.
  sound.enable = true;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    # If you want to use JACK applications, uncomment this
    #jack.enable = true;

    # use the example session manager (no others are packaged yet so this is enabled by default,
    # no need to redefine it in your config for now)
    #media-session.enable = true;
  };

I think I had the same situation

  • do you have libsForQt5.plasma-pa installed (somewhere in the scripts), as well? (it could pick the older package …)

I did not anywhere in my configuration.nix, I did have other libsForQt5 packages installed such as kleopatra, qtstyleplugin-kvantum, … but none that I can tell are related to plasma or audio