forked from Yuka/c3h-nixfiles
18 lines
347 B
Nix
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 ];
|
|
}
|