mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
services/bleachbit: add package
option
This commit is contained in:
parent
9cb4e335e0
commit
b1726ddd0d
@ -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}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user