Skip to content

Commit f5a4aa6

Browse files
committed
Keep fewer logs around
Refs #17
1 parent 67392a2 commit f5a4aa6

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
@@ -28,6 +28,15 @@
2828
git
2929
];
3030

31+
# Keep log file disk usage in check.
32+
# The default is 10% of the partitition size or so.
33+
services.journald.extraConfig = ''
34+
# One week of logs ought to be enough
35+
MaxRetentionSec=${7 * (24 * 60 * 60)};
36+
MaxFileSec=1day
37+
SystemMaxUse=250M
38+
'';
39+
3140
# Make sure the firewall is enabled. This is probably the default but let's
3241
# be explicit and safe.
3342
networking.firewall.enable = true;

0 commit comments

Comments
 (0)