Clean up Mopidy cache monthly

This commit is contained in:
coolneng 2022-06-13 12:21:55 +02:00
parent 1b859d89ed
commit d20c8d40a4
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 10 additions and 0 deletions

View File

@ -120,4 +120,14 @@ in {
startAt = "14:00:00"; startAt = "14:00:00";
after = [ "network-online.target" ]; 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" ];
};
} }