MyNixOS website logo
option

hardware.alsa.cardAliases

Assign custom names and reorder the sound cards.

You can find the card ids by looking at /proc/asound/cards.
Declarations
Type
attribute set of (submodule)
Default
{ }
Example
{
  soundchip = { driver = "snd_intel_hda"; id = 0; };
  videocard = { driver = "snd_intel_hda"; id = 1; };
  usb       = { driver = "snd_usb_audio"; id = 2; };
}