diff --git a/configuration.nix b/configuration.nix index db9e2b2..953d548 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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 = {