Skip to content

Commit

Permalink
Back port upcomming change from #26 fixing #17
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Sesser <florian@leastauthority.com>
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
  • Loading branch information
btlogy and hacklschorsch committed Jan 29, 2025
1 parent 0c2af0a commit df92d70
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nix/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
./sops.nix
];

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

nix.gc = {
Expand Down

0 comments on commit df92d70

Please sign in to comment.