dotfiles/modules/nixos/system/journald.nix
2023-07-30 20:26:23 -04:00

12 lines
238 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
'';
}