From e41bd7067cf8ea305781dfeff1de9529bb7b82e9 Mon Sep 17 00:00:00 2001 From: hektor Date: Sat, 25 Jul 2026 16:14:45 +0200 Subject: [PATCH] fix(hecuba): prevent running out of disk space --- hosts/hecuba/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/hecuba/default.nix b/hosts/hecuba/default.nix index 1ae0d52..c11e204 100644 --- a/hosts/hecuba/default.nix +++ b/hosts/hecuba/default.nix @@ -59,6 +59,18 @@ in security.sudo.wheelNeedsPassword = false; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "-d"; + }; + + virtualisation.docker.autoPrune = { + enable = true; + dates = "weekly"; + flags = [ "--all" ]; + }; + networking.firewall = { enable = true; allowedTCPPorts = [ @@ -78,5 +90,6 @@ in enable = true; maxretry = 5; }; + journald.extraConfig = "SystemMaxUse=500M"; }; }