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