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"
|
"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 = {
|
services.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
network.listenAddress = "0.0.0.0";
|
network.listenAddress = "0.0.0.0";
|
||||||
musicDirectory = "nfs://127.0.0.1:2049/?version=3";
|
musicDirectory = "nfs://127.0.0.1:2049/?version=3";
|
||||||
dbFile = null;
|
|
||||||
credentials = [
|
credentials = [
|
||||||
{
|
{
|
||||||
passwordFile = "${secrets.mpd_control_password.path}";
|
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 = {
|
services.rclone-serve = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotes = [
|
remotes = [
|
||||||
|
|
Loading…
Reference in a new issue