From 3cd05610a21b0f1c8dd589a4797e1c0de12c413c Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 17 Oct 2024 00:26:11 +0300 Subject: [PATCH] enable auto gc --- configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configuration.nix b/configuration.nix index 19774ec..26668f8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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;