diff --git a/configuration.nix b/configuration.nix index 86618b6..93a4c17 100644 --- a/configuration.nix +++ b/configuration.nix @@ -133,7 +133,15 @@ with pkgs; }; # Rotate logs after 7 days - services.journald.extraConfig = "SystemMaxFiles=7"; + services.logrotate = { + enable = true; + settings = { + "/var/log/journal" = { + frequency = "weekly"; + rotate = 7; + }; + }; + }; # Increase inotify limits boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };