From 55cfdf3609dbad97769b2be003536c7486d246b3 Mon Sep 17 00:00:00 2001 From: sajenim Date: Tue, 23 May 2023 23:02:16 +0800 Subject: [PATCH] add garbage collection --- nixos/fuchsia/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/fuchsia/configuration.nix b/nixos/fuchsia/configuration.nix index 6ce6ed8..0326261 100644 --- a/nixos/fuchsia/configuration.nix +++ b/nixos/fuchsia/configuration.nix @@ -43,6 +43,13 @@ }; nix = { + gc = { + # Automatically run the garbage collector an a specified time. + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + # This will add each flake input as a registry # To make nix commands consistent with your flake registry = lib.mapAttrs (_: value: { flake = value; }) inputs;