journald config

This commit is contained in:
Daniel Langbein 2023-09-17 15:34:06 +02:00
parent 2985e56fff
commit 9b9396bda1
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -65,6 +65,14 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
]; ];
# SystemMaxFileSize: Defaults to one eighth of the values configured with SystemMaxUse= and RuntimeMaxUse=, so that usually seven rotated journal files are kept as history.
# MaxFileSec: To ensure that not too much data is lost at once when old journal files are deleted, it might make sense to change this value from the default of one month.
# https://www.freedesktop.org/software/systemd/man/journald.conf.html
services.journald.extraConfig = ''
SystemMaxUse=800M
MaxFileSec=7day
'';
# BTRFS compression. # BTRFS compression.
# #
# `nixos-generate-config` does not detect mount options, so we add them here. # `nixos-generate-config` does not detect mount options, so we add them here.