mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
services/bleachbit: cleanup and format
This commit is contained in:
parent
b1726ddd0d
commit
1658f2d4ca
@ -104,35 +104,29 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
systemd.user = {
|
systemd.user.services.bleachbit-cleanup = {
|
||||||
services = {
|
Unit = {
|
||||||
bleachbit-cleanup = {
|
Description = "Periodic cleaning with Bleachbit";
|
||||||
Unit = {
|
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
|
||||||
Description = "Periodic cleaning with Bleachbit";
|
|
||||||
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
Service.ExecStart = ''
|
|
||||||
${cfg.package}/bin/bleachbit --clean ${lib.escapeShellArgs cleaners}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
timers = {
|
Service.ExecStart = ''
|
||||||
bleachbit-cleanup = {
|
${cfg.package}/bin/bleachbit --clean ${lib.escapeShellArgs cleaners}
|
||||||
Unit = {
|
'';
|
||||||
Description = "Periodic cleaning with Bleachbit";
|
};
|
||||||
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
|
|
||||||
PartOf = [ "default.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
Install.WantedBy = [ "timers.target" ];
|
systemd.user.timers.bleachbit-cleanup = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Periodic cleaning with Bleachbit";
|
||||||
|
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
|
||||||
|
PartOf = [ "default.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
Timer = {
|
Install.WantedBy = [ "timers.target" ];
|
||||||
OnCalendar = cfg.startAt;
|
|
||||||
Persistent = cfg.persistent;
|
Timer = {
|
||||||
};
|
OnCalendar = cfg.startAt;
|
||||||
};
|
Persistent = cfg.persistent;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user