Clean up Mopidy cache monthly
This commit is contained in:
parent
1b859d89ed
commit
d20c8d40a4
|
@ -120,4 +120,14 @@ in {
|
|||
startAt = "14:00:00";
|
||||
after = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
# Clean up Mopidy cache monthly
|
||||
systemd.services.mopidy-cleanup = {
|
||||
description = "Clean up Mopidy cache monthly";
|
||||
path = [ coreutils ];
|
||||
script = "${pkgs.coreutils}/bin/rm -rf /var/lib/mopidy/.cache/*";
|
||||
serviceConfig.Type = "oneshot";
|
||||
startAt = "*-*-15 14:00:00";
|
||||
after = [ "network-online.target" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue