move stuff to shared-services

This commit is contained in:
Yuka 2021-10-23 00:25:25 +02:00
parent 7549ce0707
commit ab24240216
Signed by untrusted user: Yuka
GPG key ID: B95AE06334AFF6BA
9 changed files with 9 additions and 8 deletions

18
shared-services/mpd.nix Normal file
View file

@ -0,0 +1,18 @@
{ 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 ];
}