services/bleachbit: add package option

This commit is contained in:
Gabriel Arazas 2022-11-13 05:55:59 +08:00
parent 9cb4e335e0
commit b1726ddd0d

View File

@ -61,6 +61,14 @@ in {
example = "Fri 10:00:00"; example = "Fri 10:00:00";
}; };
package = lib.mkOption {
type = lib.types.package;
description = ''
The derivation containing <literal>bleachbit</literal> executable.
'';
default = pkgs.bleachbit;
};
persistent = lib.mkOption { persistent = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
description = description =
@ -105,7 +113,7 @@ in {
}; };
Service.ExecStart = '' Service.ExecStart = ''
${pkgs.bleachbit}/bin/bleachbit --clean ${lib.escapeShellArgs cleaners} ${cfg.package}/bin/bleachbit --clean ${lib.escapeShellArgs cleaners}
''; '';
}; };
}; };