From 967ebc0bba53a34b26c799b7620474f79c0696dd Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 2 Dec 2024 08:23:17 +0100 Subject: [PATCH] common/journald: store logs for 30 days --- hosts/common/default.nix | 1 + hosts/common/services/journald.nix | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 hosts/common/services/journald.nix diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 7cb153d..f78c2cd 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -13,6 +13,7 @@ in { ./programs/usbtop.nix ./services/dbus.nix + ./services/journald.nix ./services/openssh.nix ./services/pcscd.nix ./services/pipewire.nix diff --git a/hosts/common/services/journald.nix b/hosts/common/services/journald.nix new file mode 100644 index 0000000..cdd4971 --- /dev/null +++ b/hosts/common/services/journald.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + services.journald.extraConfig = '' + MaxFileSec=30day + ''; +} \ No newline at end of file