This commit is contained in:
♥ Minnie ♥ 2024-09-20 20:24:55 +08:00
parent 1206380efd
commit 7203fc1ed9
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
51 changed files with 175 additions and 108 deletions

View file

@ -0,0 +1,32 @@
{...}: {
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 fuchsia.kanto.dev(rw,nohide,insecure,no_subtree_check)
'';
};
networking.firewall = {
# # for NFSv3; view with `rpcinfo -p`
allowedTCPPorts = [111 2049 4000 4001 4002 20048];
allowedUDPPorts = [111 2049 4000 4001 4002 20048];
};
}