add garbage collection
This commit is contained in:
parent
b20ddd6aef
commit
55cfdf3609
|
@ -43,6 +43,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
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
|
# This will add each flake input as a registry
|
||||||
# To make nix commands consistent with your flake
|
# To make nix commands consistent with your flake
|
||||||
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
|
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
|
||||||
|
|
Loading…
Reference in a new issue