From f70e024ff59d6f95b7940fa5326a07f658ad0b3d Mon Sep 17 00:00:00 2001 From: Alexandre1a Date: Thu, 15 Jan 2026 08:36:27 +0100 Subject: [PATCH] Added nix garbage collection --- modules/common/nix.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/common/nix.nix b/modules/common/nix.nix index 4e23477..b5db406 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -1,6 +1,11 @@ { config, ... }: { nix = { + gc = { + automatic = true; + options = "--delete-older-than 2d"; + }; + settings = { experimental-features = [ "nix-command" "flakes" ]; @@ -31,4 +36,4 @@ allowUnfree = true; }; }; -} \ No newline at end of file +}