services.mpd.settings

Configuration for MPD. MPD supports key-value like blocks for settings like audio_output and neighbor. Some of these blocks can be specified multiple times, so the following configuration:

audio_output {
    device "iec958:CARD=Intel,DEV=0"
    mixer_control "PCM"
    name "My specific ALSA output"
    type "alsa"
}
audio_output {
    mixer_type "null"
    name "ALSA Null"
    type "alsa"
}
audio_output {
    name "The Pulse"
    type "pulse"
}

Can be inserted with:

audio_output = [
  {
    type = "alsa";
    name = "My specific ALSA output";
    device = "iec958:CARD=Intel,DEV=0";
    mixer_control = "PCM";
  }
  {
    type = "alsa";
    name = "ALSA Null";
    mixer_type = "null";
  }
  {
    type = "pulse";
    name = "The Pulse";
  }
];
Type
open submodule of attribute set of (string or signed integer or boolean or absolute path or list of attribute set of (string or signed integer or boolean or absolute path))
Default
{ }
Declared
<nixpkgs/nixos/modules/services/audio/mpd.nix>