mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
feat: automatic garbage collection
This commit is contained in:
parent
375378334a
commit
ddb041d08a
@ -83,7 +83,12 @@
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
# Options given to nix-collect-garbage.
|
||||
# They are documented here: https://nixos.org/manual/nix/stable/command-ref/nix-collect-garbage
|
||||
# The `--delete-older-than <period` option refers the manual for `nix-env --delete-generations <period>`: https://nixos.org/manual/nix/stable/command-ref/nix-env/delete-generations#generations-time
|
||||
# There, two meanings of <period> are described. The second one is:
|
||||
# +<number>: Keep the last number generations, along with any newer than current.
|
||||
options = "--delete-older-than +7";
|
||||
};
|
||||
|
||||
# Delete all files in /tmp during boot.
|
||||
|
Loading…
Reference in New Issue
Block a user