From a0d4872affb5e1c0e5ebed90a4f944606b23c07a Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Mon, 23 Oct 2023 21:52:39 +0200 Subject: [PATCH] Add removal of cache after 7 days --- nixos/EDI/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/EDI/configuration.nix b/nixos/EDI/configuration.nix index bada64d..a58d23e 100644 --- a/nixos/EDI/configuration.nix +++ b/nixos/EDI/configuration.nix @@ -50,6 +50,11 @@ }; nix = { + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; # This will add each flake input as a registry # To make nix3 commands consistent with your flake registry = lib.mapAttrs (_: value: {flake = value;}) inputs;