Hi there! I am currently on a fresh installation of NixOS 24.05 and is finding it difficult to get sound working properly.
Running pavucontrol shows it is playing something when I play a YouTube video, but no sound is output at all actually.
I have tried many solutions found on this forum, none of which fixes the issue for me.
Attaching my configuration.nix:
# Enable sound with pipewire.
sound.enable = false;
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)
wireplumber.enable = true;
};
services.jack = {
jackd.enable = true;
alsa.enable = false;
loopback = {
enable = true;
};
};
Not sure if it’s the source of your issue, but don’t use both services.jack and services.pipewire together. If you want to use Jack programs with Pipewire, please do services.pipewire.jack.enable = true; instead (it’s right there in the comments of your configuration, too).
After removing that, the journalctl command above now gives me the following:
Jan 16 17:15:27 nixos systemd[1070]: Started PipeWire Multimedia Service.
Jan 16 17:15:27 nixos systemd[1070]: Started Multimedia Service Session Manager.
Jan 16 17:15:27 nixos pipewire[1330]: 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
Jan 16 17:15:27 nixos wireplumber[1332]: [0:00:24.246152137] [1332] INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
Jan 16 17:15:27 nixos wireplumber[1332]: [0:00:24.247214058] [1332] INFO Camera camera_manager.cpp:298 libcamera v0.0.5
Jan 16 17:15:27 nixos wireplumber[1332]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
Are you certain it’s not something mundane like volume not up or the wrong output device selected? When you say the microphone is actually working, this seems increasingly likely. Maybe check with pavucontrol under Output Devices if the correct device is selected and showing an output level. Also kinda running out of ideas what the issue might be.