Skip to content

Commit

Permalink
Merge: Revert "[Backport release-24.11] nixos/alsa: rebirth from the …
Browse files Browse the repository at this point in the history
…ashes" (#373263)
  • Loading branch information
Ma27 authored Jan 13, 2025
2 parents 4c5b06d + 76b1e1f commit fc1a4f4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 428 deletions.
9 changes: 4 additions & 5 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -934,16 +934,15 @@ The `sound` options have been largely removed, as they are unnecessary for most

If you set `sound.enable` in your configuration:
- If you are using Pulseaudio or PipeWire, simply remove that option
- If you are using ALSA as your only sound system (no sound server), set `hardware.alsa.enable = true` instead
- If you are not using an external sound server, and want volumes to be persisted across shutdowns, set `hardware.alsa.enablePersistence = true` instead

If you set `sound.enableOSSEmulation` in your configuration:
- Make sure it is still necessary, as very few applications actually use OSS
- If necessary, set `hardware.alsa.enableOSSEmulation = true`
- If necessary, set `boot.kernelModules = [ "snd_pcm_oss" ]`

If you set `sound.extraConfig` in your configuration:
- If you are using a sound server, like Pulseaudio, JACK or PipeWire, migrate your configuration to that
- If you are using ALSA as your only sound system, check if you can use the new structured ALSA options `hardware.alsa.defaultDevice`, `hardware.alsa.cardAliases`, `hardware.alsa.controls`, etc.
- Otherwise, move your configuration directly into `hardware.alsa.config`
- If you are using another sound server, like Pulseaudio, JACK or PipeWire, migrate your configuration to that
- If you are not using an external sound server, set `environment.etc."asound.conf".text = yourExtraConfig` instead

If you set `sound.mediaKeys` in your configuration:
- Preferably switch to handling media keys in your desktop environment/compositor
Expand Down
Loading

0 comments on commit fc1a4f4

Please sign in to comment.