From 3b67d5b5e578c8622e22e70b36cf9b4ff57b287d Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 12 Oct 2022 07:02:42 +0800 Subject: [PATCH] services/bleachbit: update units --- modules/home-manager/services/bleachbit.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/modules/home-manager/services/bleachbit.nix b/modules/home-manager/services/bleachbit.nix index c82fead6..f8564f7d 100644 --- a/modules/home-manager/services/bleachbit.nix +++ b/modules/home-manager/services/bleachbit.nix @@ -100,23 +100,20 @@ in { services = { bleachbit-cleanup = { Unit = { - Description = "Monthly cleanup with Bleachbit"; + Description = "Periodic cleaning with Bleachbit"; Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ]; }; - Service = { - Restart = "on-failure"; - ExecStart = "${pkgs.bleachbit}/bin/bleachbit --clean ${ - lib.escapeShellArgs cleaners - }"; - }; + Service.ExecStart = '' + ${pkgs.bleachbit}/bin/bleachbit --clean ${lib.escapeShellArgs cleaners} + ''; }; }; timers = { bleachbit-cleanup = { Unit = { - Description = "Periodic clean with Bleachbit"; + Description = "Periodic cleaning with Bleachbit"; Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ]; PartOf = [ "default.target" ]; };