PulseAudio: Difference between revisions

m fix article link
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
PulseAudio is a popular sound server for Linux. It is now required by a number of applications, and should be enabled if audio support is desired on NixOS. Enabling PulseAudio is sufficient to enable audio support on NixOS in most cases.
PulseAudio is a popular sound server for Linux. A number of applications now expect a PulseAudio-compatible audio server.
 
As of NixOS 24.11, [[PipeWire]] is used over PulseAudio for most graphical sessions by default, but it can provide a PulseAudio-compatible server (see that page for more details). This page documents how to use "native" PulseAudio as an alternative.


==Enabling PulseAudio==
==Enabling PulseAudio==
Add to your configuration:
Add to your configuration:


<syntaxHighlight lang="nix">
<syntaxhighlight lang="nix">
services.pipewire.enable = false;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;    ## If compatibility with 32-bit applications is desired.
hardware.pulseaudio.support32Bit = true;    # If compatibility with 32-bit applications is desired.
</syntaxHighlight>
 
# If you're on nixos-unstable you should instead use
services.pulseaudio.enable = true;
services.pulseaudio.support32Bit = true;
</syntaxhighlight>


You may need to add users to the <tt>audio</tt> group for them to be able to use audio devices:
You may need to add users to the <tt>audio</tt> group for them to be able to use audio devices:
Line 115: Line 122:
==See also==
==See also==
* [[Using JACK with PulseAudio]]
* [[Using JACK with PulseAudio]]
* [[PipeWire]]


[[Category:Audio]]
[[Category:Audio]]