Skip to content

Commit d700cbe

Browse files
committed
Keep fewer logs around
Refs #17
1 parent def5eb4 commit d700cbe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

testgrid.tahoe-lafs.org/system-configuration.nix

+9
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040
git
4141
];
4242

43+
# Keep log file disk usage in check.
44+
# The default is 10% of the partitition size or so.
45+
services.journald.extraConfig = ''
46+
# One week of logs ought to be enough
47+
MaxRetentionSec=${7 * (24 * 60 * 60)};
48+
MaxFileSec=1day
49+
SystemMaxUse=250M
50+
'';
51+
4352
# Make sure the firewall is enabled. This is probably the default but let's
4453
# be explicit and safe.
4554
networking.firewall.enable = true;

0 commit comments

Comments
 (0)