summaryrefslogtreecommitdiff
path: root/nixos/modules/system/services
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/system/services')
-rw-r--r--nixos/modules/system/services/default.nix7
1 files changed, 7 insertions, 0 deletions
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";
+ };
}