From 0c39388b219b332b7d984d4251c7e826f28ecf55 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Sat, 6 Dec 2025 11:28:02 +0100 Subject: [PATCH] gc: change to older than 30 the old +3 did not seem to work --- hosts/common/global/nix.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/common/global/nix.nix b/hosts/common/global/nix.nix index fa82104..272d765 100644 --- a/hosts/common/global/nix.nix +++ b/hosts/common/global/nix.nix @@ -2,7 +2,8 @@ lib, outputs, ... -}: { +}: +{ # Apply overlays nixpkgs = { # TODO: apply this to hm and nixos without duplicate code @@ -31,12 +32,11 @@ nix.gc = { automatic = true; dates = "weekly"; - # Keep the last 3 generations - options = "--delete-older-than +3"; + options = "--delete-older-than 30d"; }; nix.optimise = { automatic = true; - dates = ["weekly"]; # Optional; allows customizing optimisation schedule + dates = [ "weekly" ]; # Optional; allows customizing optimisation schedule }; programs.nix-ld.enable = true;