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,9 +104,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
systemd.user = {
|
systemd.user.services.bleachbit-cleanup = {
|
||||||
services = {
|
|
||||||
bleachbit-cleanup = {
|
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Periodic cleaning with Bleachbit";
|
Description = "Periodic cleaning with Bleachbit";
|
||||||
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
|
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
|
||||||
@ -116,10 +114,8 @@ in {
|
|||||||
${cfg.package}/bin/bleachbit --clean ${lib.escapeShellArgs cleaners}
|
${cfg.package}/bin/bleachbit --clean ${lib.escapeShellArgs cleaners}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
timers = {
|
systemd.user.timers.bleachbit-cleanup = {
|
||||||
bleachbit-cleanup = {
|
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Periodic cleaning with Bleachbit";
|
Description = "Periodic cleaning with Bleachbit";
|
||||||
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
|
Documentation = [ "man:bleachbit(1)" "https://www.bleachbit.org" ];
|
||||||
@ -134,6 +130,4 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user