services/bleachbit: update units

This commit is contained in:
Gabriel Arazas 2022-10-12 07:02:42 +08:00
parent bc847f28ea
commit 3b67d5b5e5

View File

@ -100,23 +100,20 @@ in {
services = { services = {
bleachbit-cleanup = { bleachbit-cleanup = {
Unit = { Unit = {
Description = "Monthly cleanup with Bleachbit"; Description = "Periodic cleaning with Bleachbit";
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ]; Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
}; };
Service = { Service.ExecStart = ''
Restart = "on-failure"; ${pkgs.bleachbit}/bin/bleachbit --clean ${lib.escapeShellArgs cleaners}
ExecStart = "${pkgs.bleachbit}/bin/bleachbit --clean ${ '';
lib.escapeShellArgs cleaners
}";
};
}; };
}; };
timers = { timers = {
bleachbit-cleanup = { bleachbit-cleanup = {
Unit = { Unit = {
Description = "Periodic clean with Bleachbit"; Description = "Periodic cleaning with Bleachbit";
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ]; Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
PartOf = [ "default.target" ]; PartOf = [ "default.target" ];
}; };