From a697be901f8f39edad041e533945e5b1ea600a73 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Sun, 9 Jan 2022 14:15:05 +0100 Subject: [PATCH] :rocket: enables nix gc and optimise --- modules/cli/nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/cli/nix.nix b/modules/cli/nix.nix index e46f771..0769b1c 100644 --- a/modules/cli/nix.nix +++ b/modules/cli/nix.nix @@ -2,4 +2,9 @@ { nix.package = pkgs.nixFlakes; + nix.gc = { + automatic = true; + options = "--max-freed $((32 * 1024**3)) --delete-older-than 14d"; + }; + nix.optimise.automatic = true; }