forked from nico/dots
nix: enable automatic garbage collection on linux
This commit is contained in:
parent
a9cb9281dc
commit
178450b13e
1 changed files with 7 additions and 0 deletions
|
|
@ -6,4 +6,11 @@
|
|||
|
||||
# Enable nix-command and flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Enable automatic garbage collection
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue