From 629f8f02d7e7c662d95d7bff415ee18d02fe4490 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Wed, 18 Dec 2024 15:20:56 +0100 Subject: [PATCH] common-config.journald: only store in-memory, max 100MB, maximum 1d Clears all logs on reboot, clears data after 100MB or after 1day, whatever comes first. --- shared/base/common-config.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shared/base/common-config.nix b/shared/base/common-config.nix index 814dc4b..7c6f8f2 100644 --- a/shared/base/common-config.nix +++ b/shared/base/common-config.nix @@ -6,7 +6,13 @@ settings.PasswordAuthentication = false; }; - journald.extraConfig = "SystemMaxUse=100M"; + journald = { + storage = "volatile"; + extraConfig = '' + SystemMaxUse=100M + MaxRetentionSec=1d + ''; + }; }; nix = {