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

This commit is contained in:
hexchen 2021-01-07 00:18:08 +00:00
parent da6dffbcff
commit 812169ed3a

View file

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