Trim the journal more aggressively

This commit is contained in:
TEC 2022-09-20 00:57:06 +08:00
parent 6bd8e7bedb
commit 27e641c4c8
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 6 additions and 0 deletions

View File

@ -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 = {