mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
profiles/server: update log cleaner service
This commit is contained in:
parent
41fd659453
commit
f0682c1f5e
@ -139,7 +139,7 @@ in
|
|||||||
systemd.services.cleanup-logs = {
|
systemd.services.cleanup-logs = {
|
||||||
description = "Weekly log cleanup";
|
description = "Weekly log cleanup";
|
||||||
documentation = [ "man:journalctl(1)" ];
|
documentation = [ "man:journalctl(1)" ];
|
||||||
script = "${pkgs.systemd}/bin/journalctl --vacuum-time=30d";
|
serviceConfig.ExecStart = "${pkgs.systemd}/bin/journalctl --vacuum-time=30d";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.timers.clean-log = {
|
systemd.timers.clean-log = {
|
||||||
@ -147,7 +147,7 @@ in
|
|||||||
documentation = [ "man:journalctl(1)" ];
|
documentation = [ "man:journalctl(1)" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "weekly";
|
OnCalendar = "monthly";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user