From bc443eed6610dfdd0fb239c638a1a9d8704178db Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Mon, 25 May 2026 09:28:55 +0200 Subject: Added automatic gc and optimise config to nix --- system/nix.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/nix.nix b/system/nix.nix index ef92dc1..74dea4f 100644 --- a/system/nix.nix +++ b/system/nix.nix @@ -15,6 +15,15 @@ experimental-features = ["nix-command" "flakes"]; }; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + optimise = { + automatic = true; + dates = ["weekly"]; + }; }; # Fix nixpkgs.overlays for Lix compatibility -- cgit v1.2.3