c3h-nixfiles/hosts/nuc/mpd.nix
2021-08-21 18:57:02 +02:00

18 lines
347 B
Nix

{ config, ... }:
{
services.mpd = {
enable = true;
musicDirectory = "/mnt/Music";
network.listenAddress = "any";
extraConfig = ''
audio_output {
type "pulse"
name "pulse audio"
server "localhost"
}
'';
};
networking.firewall.allowedTCPPorts = [ config.services.mpd.network.port ];
}