Replace logrotate with a journalctl option

This commit is contained in:
coolneng 2022-07-12 14:53:54 +02:00
parent d8813bdfff
commit 2e5fcf2975
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 11 deletions

View File

@ -68,17 +68,8 @@ in {
# Clean tmp directory on shutdown # Clean tmp directory on shutdown
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
# Rotate logs after 7 days # Keep logs for a week
services.logrotate = { services.journald.extraConfig = "MaxRetentionSec=1week";
enable = true;
settings = {
"/var/log/journal" = {
frequency = "weekly";
rotate = 7;
};
};
};
systemd.services.logrotate.startAt = lib.mkForce "12:00:00";
# Allow propietary software and build packages with Pulseaudio support # Allow propietary software and build packages with Pulseaudio support
nixpkgs.config = { nixpkgs.config = {