dotfiles/modules/nixos/system/journald.nix
2024-04-20 09:42:06 -04:00

12 lines
237 B
Nix

{ ... }:
{
# How long to keep journalctl entries
# This helps to make sure log disk usage doesn't grow too unwieldy
services.journald.extraConfig = ''
SystemMaxUse=100M
MaxFileSec=1month
MaxRetentionSec=2month
'';
}