enable auto gc

This commit is contained in:
Osman Faruk Bayram 2024-10-17 00:26:11 +03:00
parent 1fbb779c9a
commit 3cd05610a2

View file

@ -118,6 +118,12 @@
# enable nix flakes
nix.settings.experimental-features = [ "nix-command" "flakes"];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# disable the database error TODO add nix-index search
programs.command-not-found.enable = false;