dotfiles/modules/nixos/system/journald.nix

15 lines
308 B
Nix
Raw Permalink Normal View History

2024-04-20 13:42:06 +00:00
{ ... }:
{
2023-06-05 03:09:38 +00:00
# How long to keep journalctl entries
2023-07-31 00:26:23 +00:00
# This helps to make sure log disk usage doesn't grow too unwieldy
2023-06-05 03:09:38 +00:00
services.journald.extraConfig = ''
2024-07-02 13:42:50 +00:00
SystemMaxUse=4G
SystemKeepFree=10G
SystemMaxFileSize=128M
SystemMaxFiles=500
2023-06-05 03:09:38 +00:00
MaxFileSec=1month
MaxRetentionSec=2month
'';
}