diff --git a/configuration.nix b/configuration.nix index bc95ed6..390d498 100644 --- a/configuration.nix +++ b/configuration.nix @@ -86,17 +86,8 @@ with pkgs; ]; }; - # Rotate logs after 7 days - services.logrotate = { - enable = true; - settings = { - "/var/log/journal" = { - frequency = "weekly"; - rotate = 7; - }; - }; - }; - systemd.services.logrotate.startAt = lib.mkForce "daily"; + # Keep logs for a week + services.journald.extraConfig = "MaxRetentionSec=1week"; # Increase inotify limits boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };