fix: persist cache cleanup user service

This commit is contained in:
Dmitriy Kholkin 2025-07-08 15:20:55 +03:00
parent b30426a5e8
commit 064c9c7381
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -141,7 +141,6 @@ in
services."persist-cache-cleanup-${username}" = {
Unit = {
Description = "Cleaning up cache files and directories for user ${username}";
Wants = [ "modprobed-db.timer" ];
};
Service =
let
@ -162,13 +161,9 @@ in
'';
Type = "simple";
};
Install.WantedBy = [ "default.target" ];
};
timers."persist-cache-cleanup-${username}" = {
Unit = {
Description = "Run persist-cache-cleanup-${username} service by set schedule";
PartOf = [ "persist-cache-cleanup-${username}.service" ];
};
Unit.Description = "Run persist-cache-cleanup-${username} service by set schedule";
Timer = {
Persistent = true;
OnCalendar = cfg.cache.clean.dates;