dotfiles.nix/nixos/viridian/services/mpd.nix

33 lines
758 B
Nix
Raw Normal View History

2024-08-08 09:02:42 +08:00
{...}: {
2024-02-13 23:03:10 +08:00
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 = ''
2024-07-08 21:30:08 +08:00
/srv/multimedia/library/music fuchsia.kanto.dev(rw,nohide,insecure,no_subtree_check)
2024-02-13 23:03:10 +08:00
'';
};
2024-02-14 09:12:28 +08:00
networking.firewall = {
# # for NFSv3; view with `rpcinfo -p`
2024-08-08 09:02:42 +08:00
allowedTCPPorts = [111 2049 4000 4001 4002 20048];
allowedUDPPorts = [111 2049 4000 4001 4002 20048];
2024-02-14 09:12:28 +08:00
};
2024-02-13 23:03:10 +08:00
}