From 8f398404d5b77de638200776f9c60c29e812de96 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 28 Aug 2024 08:21:26 +0200 Subject: [PATCH] configuration/common: Limit journald log retention time --- configuration/common/default.nix | 1 + configuration/common/systemd.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 configuration/common/systemd.nix diff --git a/configuration/common/default.nix b/configuration/common/default.nix index 0f80d47..6d599f5 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -9,6 +9,7 @@ ./nix.nix ./programs.nix ./ssh.nix + ./systemd.nix ./user.nix ./web.nix ]; diff --git a/configuration/common/systemd.nix b/configuration/common/systemd.nix new file mode 100644 index 0000000..f90c304 --- /dev/null +++ b/configuration/common/systemd.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + + services.journald.extraConfig = '' + MaxRetentionSec=7days + ''; + +}