Add removal of cache after 7 days

This commit is contained in:
Lillian Violet 2023-10-23 21:52:39 +02:00
parent 1275f351e2
commit 2e83debf19

View file

@ -50,6 +50,11 @@
}; };
nix = { nix = {
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# This will add each flake input as a registry # This will add each flake input as a registry
# To make nix3 commands consistent with your flake # To make nix3 commands consistent with your flake
registry = lib.mapAttrs (_: value: {flake = value;}) inputs; registry = lib.mapAttrs (_: value: {flake = value;}) inputs;