From fd27e13ef27640cc89eda53fdb0ca0380f5ab1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 4 Jan 2026 22:14:25 +0100 Subject: [PATCH] nixos/system-nixconf: include best-effort {min,max}-free by default --- nix/nixosModules/common/system-nixconf.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/nixosModules/common/system-nixconf.nix b/nix/nixosModules/common/system-nixconf.nix index 9a0d8783..fdfb8d20 100644 --- a/nix/nixosModules/common/system-nixconf.nix +++ b/nix/nixosModules/common/system-nixconf.nix @@ -8,6 +8,10 @@ package = lib.mkDefault pkgs.nix; settings = { + # Try to have at least 10GB of space by default + min-free = lib.mkDefault (5 * 1024 * 1024 * 1024); + max-free = lib.mkDefault (10 * 1024 * 1024 * 1024); + extra-substituters = [ "https://nix-community.cachix.org" ];