From 6123b7209409c08c468e52f2fccbdca5cc963c84 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 23 Feb 2020 14:59:06 +0100 Subject: [PATCH] Trigger log rotation after a week --- configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration.nix b/configuration.nix index e9c9d44..64a93d2 100644 --- a/configuration.nix +++ b/configuration.nix @@ -82,6 +82,9 @@ programs.fish.enable = true; users.users.root.shell = "/run/current-system/sw/bin/fish"; + # Rotate logs after 7 days + services.journald.extraConfig = "SystemMaxFiles=7"; + # Import other configuration modules imports = [ ./modules/printing.nix