From 9dee4a9952ae57332ab560f435eabd270b5622b8 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Thu, 17 Sep 2026 21:01:21 +0200 Subject: [PATCH] nix gc only if bigger than 150GB --- modules/system/nix.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/system/nix.nix b/modules/system/nix.nix index d5b7511..0241935 100644 --- a/modules/system/nix.nix +++ b/modules/system/nix.nix @@ -23,6 +23,8 @@ in keepMin = if keepGenerations != null then keepGenerations else 10; gc = true; # Run GC afterwards + gcBigger = 150; # Run GC only if store is bigger than 150 GiB + gcModest = true; # Stop gc once store meets quota }; services.peerix = {