diff --git a/modules/periodic.nix b/modules/periodic.nix index 82a8844..af50bf4 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -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" ]; + }; }