MyNixOS website logo
option

services.shairport-sync.settings

Configuration options for Shairport-Sync.

See the example shairport-sync.conf for possible options.

Declarations
Type
attribute set of (libconfig value)
Default
{
  diagnostics = {
    log_verbosity = 1;
  };
  general = {
    output_backend = "pa";
  };
}
Example
{
  general = {
    name = "NixOS Shairport";
    output_backend = "pw";
  };
  metadata = {
    cover_art_cache_directory = "/tmp/shairport-sync/.cache/coverart";
    enabled = "yes";
    include_cover_art = "yes";
    pipe_name = "/tmp/shairport-sync-metadata";
    pipe_timeout = 5000;
  };
  mqtt = {
    enabled = "yes";
    hostname = "mqtt.server.domain.example";
    port = 1883;
    publish_cover = "yes";
    publish_parsed = "yes";
  };
}