Trim the journal more aggressively

This commit is contained in:
Timothy 2022-09-20 00:57:06 +08:00
parent 6bd8e7bedb
commit 27e641c4c8
Signed by: tec
SSH key fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A

View file

@ -8,6 +8,12 @@
passwordAuthentication = false; passwordAuthentication = false;
kbdInteractiveAuthentication = false; kbdInteractiveAuthentication = false;
}; };
services.journald.extraConfig = ''
SystemMaxUse=1G
SystemMaxFileSize=100M
MaxFileSec=1day
MaxRetentionSec=2months
''; # Limit journal accumulation
system.stateVersion = "22.05"; system.stateVersion = "22.05";
nix = { nix = {