PulseAudio: Difference between revisions
Remove obsolete config example |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 8: | Line 8: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.pipewire.enable = false; | services.pipewire.enable = false; | ||
services.pulseaudio.enable = true; | |||
services.pulseaudio.support32Bit = true; # If compatibility with 32-bit applications is desired. | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 37: | Line 34: | ||
Or automatically: | Or automatically: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
services.pulseaudio.extraConfig = "load-module module-combine-sink"; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 43: | Line 40: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
services.pulseaudio.extraConfig = "unload-module module-suspend-on-idle"; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 90: | Line 87: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
services.pulseaudio.package = pkgs.pulseaudioFull; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 108: | Line 105: | ||
To turn timer-based scheduling off add this to your configuration: | To turn timer-based scheduling off add this to your configuration: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
services.pulseaudio.configFile = pkgs.runCommand "default.pa" {} '' | |||
sed 's/module-udev-detect$/module-udev-detect tsched=0/' \ | sed 's/module-udev-detect$/module-udev-detect tsched=0/' \ | ||
${pkgs.pulseaudio}/etc/pulse/default.pa > $out | ${pkgs.pulseaudio}/etc/pulse/default.pa > $out | ||