MPD: Difference between revisions

Novida (talk | contribs)
Migrated services.mpd.extraConfig to services.mpd.settings with proper Nix attribute set syntax.
Novida (talk | contribs)
m fix duplicate code block error
 
Line 133: Line 133:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
services.mpd.settings = {
services.mpd.user = "userRunningPipeWire";
  audio_output = [
systemd.services.mpd.environment = {
     {
     # https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
      type = "pipewire";
    XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.userRunningPipeWire.uid}"; # User-id must match above user. MPD will look inside this directory for the PipeWire socket.
      name = "My PipeWire Output";
    }
  ];
};
};
</syntaxhighlight>
</syntaxhighlight>