From 8b8ecac876d82d31f7ebfea5961bd9965762b757 Mon Sep 17 00:00:00 2001 From: twoneis Date: Fri, 24 Nov 2023 23:10:00 +0100 Subject: [PATCH] added gc --- modules/system/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/system/default.nix b/modules/system/default.nix index 1d46e2f..cabb47e 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -7,6 +7,16 @@ ../gnome ]; + #Optimise nix store + nix = { + optimise.automatic = true; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + }; + # Enable nix flakes nix.settings.experimental-features = [ "nix-command" "flakes" ];