default: make log retention 48h (or 512MiB)

keep-around/812169ed3a12cbba4fec87586bc3c7b3d1e8decf
hexchen 2021-01-07 00:18:08 +00:00
parent da6dffbcff
commit 812169ed3a
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@
enable = lib.mkDefault true;
};
services.journald.extraConfig = "SystemMaxUse=512M";
services.journald.extraConfig = ''
SystemMaxUse=512M
MaxRetentionSec=48h
'';
nix.gc.automatic = lib.mkDefault true;
nix.gc.options = lib.mkDefault "--delete-older-than 1w";
nix.trustedUsers = [ "root" "@wheel" ];