setup mpd server

This commit is contained in:
♥ Minnie ♥ 2024-02-13 23:03:10 +08:00
parent d687e8e542
commit 236b8fbfeb
3 changed files with 32 additions and 0 deletions

View file

@ -36,6 +36,7 @@
80 # traefik (HTTP) 80 # traefik (HTTP)
443 # traefik (HTTPS) 443 # traefik (HTTPS)
32372 # qbittorrent 32372 # qbittorrent
6600 # mpd
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
53 # adguardhome (DNS) 53 # adguardhome (DNS)
@ -43,6 +44,7 @@
443 # traefik (HTTPS) 443 # traefik (HTTPS)
32372 # qbittorrent 32372 # qbittorrent
51820 # Wireguard 51820 # Wireguard
6600 # mpd
]; ];
}; };
}; };

View file

@ -4,5 +4,6 @@
imports = [ imports = [
./traefik ./traefik
./borgbackup.nix ./borgbackup.nix
./mpd.nix
]; ];
} }

View file

@ -0,0 +1,29 @@
{ ... }:
{
services.mpd = {
enable = true;
musicDirectory = "/srv/multimedia/library/music";
network = {
listenAddress = "any";
port = 6600;
};
extraConfig = ''
audio_output {
type "null"
name "This server does not need to play music."
}
'';
};
services.nfs.server = {
enable = true;
lockdPort = 4001;
mountdPort = 4002;
statdPort = 4000;
extraNfsdConfig = '''';
exports = ''
/srv/multimedia/library/music 192.168.1.101(rw,nohide,insecure,no_subtree_check)
'';
};
}