From 2e5fcf29759d7869afdb22df752b47e5b7fa9050 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 12 Jul 2022 14:53:54 +0200 Subject: [PATCH] Replace logrotate with a journalctl option --- configuration.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/configuration.nix b/configuration.nix index 47ab56d..c0c8cd3 100644 --- a/configuration.nix +++ b/configuration.nix @@ -68,17 +68,8 @@ in { # Clean tmp directory on shutdown boot.cleanTmpDir = true; - # Rotate logs after 7 days - services.logrotate = { - enable = true; - settings = { - "/var/log/journal" = { - frequency = "weekly"; - rotate = 7; - }; - }; - }; - systemd.services.logrotate.startAt = lib.mkForce "12:00:00"; + # Keep logs for a week + services.journald.extraConfig = "MaxRetentionSec=1week"; # Allow propietary software and build packages with Pulseaudio support nixpkgs.config = {