Replace logrotate with a journalctl option
This commit is contained in:
parent
d8813bdfff
commit
2e5fcf2975
|
@ -68,17 +68,8 @@ in {
|
|||
# Clean tmp directory on shutdown
|
||||
boot.cleanTmpDir = true;
|
||||
|
||||
# Rotate logs after 7 days
|
||||
services.logrotate = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"/var/log/journal" = {
|
||||
frequency = "weekly";
|
||||
rotate = 7;
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.services.logrotate.startAt = lib.mkForce "12:00:00";
|
||||
# Keep logs for a week
|
||||
services.journald.extraConfig = "MaxRetentionSec=1week";
|
||||
|
||||
# Allow propietary software and build packages with Pulseaudio support
|
||||
nixpkgs.config = {
|
||||
|
|
Loading…
Reference in New Issue