From 812169ed3a12cbba4fec87586bc3c7b3d1e8decf Mon Sep 17 00:00:00 2001 From: hexchen Date: Thu, 7 Jan 2021 00:18:08 +0000 Subject: [PATCH] default: make log retention 48h (or 512MiB) --- configuration/common/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configuration/common/default.nix b/configuration/common/default.nix index 9083704..404598c 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -19,7 +19,10 @@ enable = lib.mkDefault true; }; - services.journald.extraConfig = "SystemMaxUse=512M"; + services.journald.extraConfig = '' + SystemMaxUse=512M + MaxRetentionSec=48h + ''; nix.gc.automatic = lib.mkDefault true; nix.gc.options = lib.mkDefault "--delete-older-than 1w"; nix.trustedUsers = [ "root" "@wheel" ];