Replace logrotate with a journalctl option

This commit is contained in:
coolneng 2022-07-12 19:52:52 +02:00
parent a92a2e19fd
commit b418c9c892
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 11 deletions

View File

@ -86,17 +86,8 @@ with pkgs;
];
};
# Rotate logs after 7 days
services.logrotate = {
enable = true;
settings = {
"/var/log/journal" = {
frequency = "weekly";
rotate = 7;
};
};
};
systemd.services.logrotate.startAt = lib.mkForce "daily";
# Keep logs for a week
services.journald.extraConfig = "MaxRetentionSec=1week";
# Increase inotify limits
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };