Skip to content

Commit df92d70

Browse files
btlogyhacklschorsch
andcommitted
Back port upcomming change from #26 fixing #17
Co-authored-by: Florian Sesser <florian@leastauthority.com> Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
1 parent 0c2af0a commit df92d70

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nix/common/default.nix

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
./sops.nix
99
];
1010

11+
# Keep log file disk usage in check.
12+
# The default is 10% of the partitition size or so.
1113
services.journald.extraConfig = ''
12-
SystemMaxUse=500M
14+
# One week of logs ought to be enough
15+
MaxRetentionSec=${toString(7 * (24 * 60 * 60))}s
16+
MaxFileSec=1day
17+
SystemMaxUse=250M
1318
'';
1419

1520
nix.gc = {

0 commit comments

Comments
 (0)