From 27e641c4c8bbb91a6a3bf89ac53e5aa5b3e0ee49 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 20 Sep 2022 00:57:06 +0800 Subject: [PATCH] Trim the journal more aggressively --- modules/common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/common.nix b/modules/common.nix index d0229a4..180a03c 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -8,6 +8,12 @@ passwordAuthentication = false; kbdInteractiveAuthentication = false; }; + services.journald.extraConfig = '' +SystemMaxUse=1G +SystemMaxFileSize=100M +MaxFileSec=1day +MaxRetentionSec=2months +''; # Limit journal accumulation system.stateVersion = "22.05"; nix = {