From d620435a03734e5675bceacec055c1c69c302729 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Tue, 28 May 2024 15:31:26 +0900 Subject: [PATCH] nix: enable optimisation of the store --- modules/nix/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index e8b8002..ef1e381 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -5,10 +5,16 @@ automatic = true; dates = "weekly"; options = "--delete-older-than 20d"; + # Catch up on missed runs due to being powered off + persistent = true; + }; + settings = { + # Deduplicate identical files in the store regularly + optimise.automatic = true; + experimental-features = [ + "nix-command" + "flakes" + ]; }; - settings.experimental-features = [ - "nix-command" - "flakes" - ]; }; }