mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
services/bleachbit: update units
This commit is contained in:
parent
bc847f28ea
commit
3b67d5b5e5
@ -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" ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user