From c51e5d478d3d16113721f326ea12d12e33794496 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 19 Mar 2021 21:29:54 +0000 Subject: [PATCH] lib/common: add --delete-older-than --- ops/nixos/lib/common.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/ops/nixos/lib/common.nix b/ops/nixos/lib/common.nix index 5af5758521..a5de702953 100644 --- a/ops/nixos/lib/common.nix +++ b/ops/nixos/lib/common.nix @@ -127,6 +127,7 @@ in nix.gc = { automatic = lib.mkDefault true; dates = "*-*-* 05:00:00"; + options = "--delete-older-than 7d"; }; home-manager.useUserPackages = true;