From ab536579dd9aea660dda3fa5a891da4b22b54ec4 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 24 May 2024 14:03:52 -0500 Subject: [PATCH] refactor(nix/hosts/luna): set `gc` to remove generations older than a week --- hosts/luna/modules/nix.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/luna/modules/nix.nix b/hosts/luna/modules/nix.nix index c927705d..fe20ed57 100755 --- a/hosts/luna/modules/nix.nix +++ b/hosts/luna/modules/nix.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ ... }: { nix = { settings = { @@ -11,6 +11,7 @@ }; gc = { automatic = true; + options = "--delete-older-than 7d"; dates = "daily"; }; };