Rotate logs using logrotate

This commit is contained in:
coolneng 2022-06-15 22:49:08 +02:00
parent 774c628c1e
commit bcce239a93
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 9 additions and 1 deletions

View File

@ -69,7 +69,15 @@ in {
boot.cleanTmpDir = true;
# Rotate logs after 7 days
services.journald.extraConfig = "SystemMaxFiles=7";
services.logrotate = {
enable = true;
settings = {
"/var/log/journal" = {
frequency = "weekly";
rotate = 7;
};
};
};
# Allow propietary software and build packages with Pulseaudio support
nixpkgs.config = {