Replace logrotate with a journalctl option
This commit is contained in:
parent
a92a2e19fd
commit
b418c9c892
|
@ -86,17 +86,8 @@ with pkgs;
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# 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 "daily";
|
|
||||||
|
|
||||||
# Increase inotify limits
|
# Increase inotify limits
|
||||||
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
|
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
|
||||||
|
|
Loading…
Reference in New Issue