From 802a6d18d36f991b92d0306b5cf2725762dbdc3c Mon Sep 17 00:00:00 2001 From: winston Date: Mon, 3 Jul 2023 03:33:35 +0200 Subject: [PATCH] feat(nix): add gc/optimize automation --- config/nix.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/nix.nix b/config/nix.nix index 5e60558..f4932da 100644 --- a/config/nix.nix +++ b/config/nix.nix @@ -1,3 +1,9 @@ { - nix.settings.experimental-features = ["nix-command" "flakes"]; + nix = { + gc.automatic = true; + settings = { + auto-optimise-store = true; + experimental-features = ["nix-command" "flakes"]; + }; + }; }