setup mpd server
This commit is contained in:
parent
d687e8e542
commit
236b8fbfeb
|
@ -36,6 +36,7 @@
|
|||
80 # traefik (HTTP)
|
||||
443 # traefik (HTTPS)
|
||||
32372 # qbittorrent
|
||||
6600 # mpd
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
53 # adguardhome (DNS)
|
||||
|
@ -43,6 +44,7 @@
|
|||
443 # traefik (HTTPS)
|
||||
32372 # qbittorrent
|
||||
51820 # Wireguard
|
||||
6600 # mpd
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
imports = [
|
||||
./traefik
|
||||
./borgbackup.nix
|
||||
./mpd.nix
|
||||
];
|
||||
}
|
||||
|
|
29
nixos/viridian/services/mpd.nix
Normal file
29
nixos/viridian/services/mpd.nix
Normal 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)
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue