19 lines
347 B
Nix
19 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 ];
|
||
|
}
|