From a49f0075421547eaee33ce8d0b22e08f6115beea Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 11 May 2022 14:00:09 -0400 Subject: [PATCH] tweak(nix-gc): automatically delete old generations --- modules/devos/nix.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/devos/nix.nix b/modules/devos/nix.nix index b9f687a..87a4b99 100644 --- a/modules/devos/nix.nix +++ b/modules/devos/nix.nix @@ -16,7 +16,10 @@ with lib; sandbox = true; }; - gc.automatic = true; + gc = { + automatic = true; + options = "--delete-older-than 3d"; + }; optimise.automatic = true;