From 6de9356406706a7dda958d4fb8c87d6f0288c04a Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 7 Jul 2022 16:13:39 +0200 Subject: [PATCH] feat: automatically optmimize and garbage-collect nix store --- configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configuration.nix b/configuration.nix index 07e55a5..70ebd21 100644 --- a/configuration.nix +++ b/configuration.nix @@ -96,6 +96,13 @@ nix = { package = pkgs.nixFlakes; extraOptions = "experimental-features = nix-command flakes"; + + autoOptimiseStore = true; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; }; system.stateVersion = "22.05";