From ea73f7c1aed9a02c2e23860ad505bfca7c3a7504 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 29 Dec 2024 01:10:11 -0500 Subject: [PATCH] clear log files after 2 days --- hosts/common.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/common.nix b/hosts/common.nix index 5017d8b..c31c747 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -31,4 +31,7 @@ # needed for zsh.enableCompletion to work environment.pathsToLink = [ "/share/zsh" ]; + + # see journald.conf(5) + services.journald.extraConfig = "MaxRetentionSec=2d"; }