From ed15c47f05871f8f381088cca98c835dbd9c38fd Mon Sep 17 00:00:00 2001 From: Fern Garden Date: Mon, 8 Sep 2025 18:57:30 +0800 Subject: [PATCH] Auto-optimise store & garbage collect daily --- suites/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/suites/default.nix b/suites/default.nix index 38529df..359d342 100644 --- a/suites/default.nix +++ b/suites/default.nix @@ -14,6 +14,12 @@ with lib; { # Set $NIX_PATH. nixPath = ["nixpkgs=${inputs.nixpkgs}"]; + # Optimise store. + optimise = { + automatic = true; + dates = "daily"; + }; + settings = { # Enable flakes. experimental-features = [ @@ -289,7 +295,8 @@ with lib; { enable = true; clean = { enable = true; - extraArgs = "--keep 5"; + extraArgs = "--keep 3"; + dates = "daily"; }; };