From 2128c3819ec3313b2e2554200136dfcc58e963d0 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 4 Oct 2026 21:09:26 +0200 Subject: nixos: keep journald logs small --- modules/nixos/personal/system.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/nixos') diff --git a/modules/nixos/personal/system.nix b/modules/nixos/personal/system.nix index 959f419..49ba6c8 100644 --- a/modules/nixos/personal/system.nix +++ b/modules/nixos/personal/system.nix @@ -124,6 +124,15 @@ in }; }) + (lib.mkIf (cfgRemote.enable && cfgLuks ? crypt) { + # if a remote builder is needed, the machine is slow + # encrypting journal logs can take up a lot of resources, + # hence they are kept small + services.journald.extraConfig = '' + SystemMaxUse=100M + ''; + }) + (lib.mkIf cfg.autoUpgrade.enable { personal.boot.unattendedReboot = lib.mkIf reboot true; system.autoUpgrade = { -- cgit v1.3.1