From 0db03f2815288991c9f110c1bed3bd90ce5f5eb9 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 4 Dec 2025 00:15:34 +0100 Subject: [PATCH] feat(hosts): adding the nix-gc and increase the download-buff --- hosts/global.nix | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/hosts/global.nix b/hosts/global.nix index cf40bc8..f07bab8 100644 --- a/hosts/global.nix +++ b/hosts/global.nix @@ -55,12 +55,21 @@ nixpkgs.config.allowUnfree = true; - nix.settings = { - download-buffer-size = 1048576; - experimental-features = [ - "nix-command" - "flakes" - ]; + nix = { + gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 14d"; + }; + settings = { + download-buffer-size = 268435456; + experimental-features = [ + "nix-command" + "flakes" + ]; + max-jobs = "auto"; + auto-optimise-store = true; + }; }; environment.variables.AGE_KEY_FILE = "/root/.config/age/keys.txt";