PulseAudio: Difference between revisions
→Enabling PulseAudio: per the 24.11 release notes, you need to disable pipewire now |
Remove obsolete config example |
||
| (3 intermediate revisions by 3 users 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 33: | Line 34: | ||
Or automatically: | Or automatically: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
services.pulseaudio.extraConfig = "load-module module-combine-sink"; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 39: | Line 40: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
services.pulseaudio.extraConfig = "unload-module module-suspend-on-idle"; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 86: | Line 87: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
services.pulseaudio.package = pkgs.pulseaudioFull; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 104: | 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 | ||