profiles/server: update log cleaner service

This commit is contained in:
Gabriel Arazas 2023-02-22 11:29:28 +08:00
parent 41fd659453
commit f0682c1f5e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -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;
};
};