diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2026-10-04 21:09:26 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2026-10-04 21:09:26 +0200 |
| commit | 2128c3819ec3313b2e2554200136dfcc58e963d0 (patch) | |
| tree | 84716fc99cc41a5023ee86bab2d4cd7470bf7a33 /modules | |
| parent | 1b39efef3cfa1c3fbf8f073bd504825b0b930c1b (diff) | |
| download | my-nixpkgs-2128c3819ec3313b2e2554200136dfcc58e963d0.tar.gz my-nixpkgs-2128c3819ec3313b2e2554200136dfcc58e963d0.tar.bz2 my-nixpkgs-2128c3819ec3313b2e2554200136dfcc58e963d0.tar.xz | |
nixos: keep journald logs small
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nixos/personal/system.nix | 9 |
1 files changed, 9 insertions, 0 deletions
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 = { |
