From 1e3def5c7832572877a0f41432bab5655ea4f6bf Mon Sep 17 00:00:00 2001 From: seraphim <18ycm9tx@anonaddy.me> Date: Sat, 8 Aug 2026 17:21:01 +0700 Subject: upd --- nixos/modules/system/services/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nixos/modules/system/services/default.nix') diff --git a/nixos/modules/system/services/default.nix b/nixos/modules/system/services/default.nix index 74ac531..571ae3a 100644 --- a/nixos/modules/system/services/default.nix +++ b/nixos/modules/system/services/default.nix @@ -14,4 +14,11 @@ SystemMaxUse=50M MaxRetentionSec=1month ''; + + # Cap core dumps so a crashing app can't fill the root partition with + # multi-GB crash dumps (e.g. java/electron segfaults). + systemd.coredump.settings.Coredump = { + ProcessSizeMax = "512M"; + Storage = "external"; + }; } -- cgit v1.2.3