euhadra: enable mpd streaming

This commit is contained in:
Gabriel Ebner 2020-06-13 16:51:38 +02:00
parent 63a3767efd
commit c421086704

@ -1,5 +1,6 @@
{ config, pkgs, ... }:
let mpdStreamingPort = 8080; in
{
imports =
[
@ -41,6 +42,13 @@
name "pulse"
}
audio_output {
type "httpd"
name "http"
encoder "flac"
port "${toString mpdStreamingPort}"
}
replaygain "auto"
restore_paused "yes"
'';
@ -49,6 +57,7 @@
networking.firewall.allowedTCPPorts = [
config.services.mpd.network.port
4713 # pulseaudio
mpdStreamingPort # mpd streaming
];
environment.systemPackages = with pkgs; [ mpc_cli ];