home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 084afa1d9d52e069700742bd4dd1de2714468cad
parent 7f20e7ad2f04a703b6d5b549c86e8f49ad01100b
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 27 Nov 2023 17:57:12 +0100

journald: keep only 500MiB of systemd journal

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/modules/core/default.nix | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/systems/modules/core/default.nix b/systems/modules/core/default.nix @@ -19,6 +19,10 @@ Defaults env_keep += SSH_AUTH_SOCK ''; }; + + # Only keep the last 500MiB of systemd journal. + services.journald.extraConfig = "SystemMaxUse=500M"; + systemd.services."status-email-root@" = { description = "status email for %i to vincent"; serviceConfig = {