mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
journald config
This commit is contained in:
parent
2985e56fff
commit
9b9396bda1
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user