mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +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 = {
|
||||
description = "Weekly log cleanup";
|
||||
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 = {
|
||||
@ -147,7 +147,7 @@ in
|
||||
documentation = [ "man:journalctl(1)" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "weekly";
|
||||
OnCalendar = "monthly";
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user