From 6bd8e7bedb5846563df2ab9db9f03e44ae36aca2 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 20 Sep 2022 00:56:45 +0800 Subject: [PATCH] Compact the nix store --- modules/common.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/common.nix b/modules/common.nix index ca47edb..d0229a4 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -18,6 +18,14 @@ experimental-features = nix-command flakes ''; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + + settings.auto-optimise-store = true; + # from flake-utils-plus # Sets NIX_PATH to follow this flake's nix inputs # So legacy nix-channel is not needed