add /var/lib/mpd to ReadWritePaths
This commit is contained in:
parent
fdaf08b394
commit
a2adf8e7d3
|
@ -22,11 +22,18 @@ in {
|
|||
"d /caches/music_serve - mpd mpd"
|
||||
];
|
||||
|
||||
systemd.services.mpd = {
|
||||
wants = ["rclone-serve-nfs-music.service"];
|
||||
after = ["rclone-serve-nfs-music.service"];
|
||||
serviceConfig = {
|
||||
ReadWritePaths = ["/var/lib/mpd"];
|
||||
};
|
||||
};
|
||||
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
network.listenAddress = "0.0.0.0";
|
||||
musicDirectory = "nfs://127.0.0.1:2049/?version=3";
|
||||
dbFile = null;
|
||||
credentials = [
|
||||
{
|
||||
passwordFile = "${secrets.mpd_control_password.path}";
|
||||
|
@ -84,11 +91,6 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
systemd.services.mpd = {
|
||||
wants = ["rclone-serve-nfs-music.service"];
|
||||
after = ["rclone-serve-nfs-music.service"];
|
||||
};
|
||||
|
||||
services.rclone-serve = {
|
||||
enable = true;
|
||||
remotes = [
|
||||
|
|
Loading…
Reference in a new issue