From f118ba091218236b5ab84d28b7bfc4dae98c4373 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 12 Apr 2019 17:42:03 +0000 Subject: [PATCH] Auto optimize storage --- configuration.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index e9cc3ef..e2aff79 100644 --- a/configuration.nix +++ b/configuration.nix @@ -52,7 +52,11 @@ in { system.autoUpgrade.enable = true; system.stateVersion = "18.09"; - nix.gc.automatic = true; - nix.gc.dates = "weekly"; - nix.gc.options = "--delete-older-than 30d"; + nix = { + optimise.automatic = true; + gc = { + automatic = true; + options = "--delete-older-than 7d"; + }; + }; }