From b4535d6b579f8fd56076e6872b3c75a6b49dcfc4 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 3 May 2021 23:22:09 +0200 Subject: [PATCH] [thinkman] optimise store automatically & fix format --- thinkman.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/thinkman.nix b/thinkman.nix index 28d6ddf..e03754d 100644 --- a/thinkman.nix +++ b/thinkman.nix @@ -48,8 +48,12 @@ boot.kernelPackages = pkgs.linuxPackages_latest; # Nix - nix.gc.automatic = true; - nix.gc.options = "--delete-older-than 30d"; + nix.autoOptimiseStore = true; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; system.stateVersion = "20.09"; system.autoUpgrade.enable = true;