Rotate logs using logrotate
This commit is contained in:
parent
774c628c1e
commit
bcce239a93
|
@ -69,7 +69,15 @@ in {
|
||||||
boot.cleanTmpDir = true;
|
boot.cleanTmpDir = true;
|
||||||
|
|
||||||
# Rotate logs after 7 days
|
# 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
|
# Allow propietary software and build packages with Pulseaudio support
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
|
|
Loading…
Reference in New Issue