From 4e87fba9173587fd567120a35428bf30d3aef7a1 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 12 Apr 2019 17:41:59 +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 7a38182..109a3bc 100644 --- a/configuration.nix +++ b/configuration.nix @@ -65,7 +65,11 @@ in { system.stateVersion = "18.09"; system.autoUpgrade.enable = true; - 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"; + }; + }; }