From 583467ffd44f48c0cdb5ced2c8c4a128689a0270 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 12 Apr 2019 17:25:39 +0000 Subject: [PATCH] Auto garbage collect --- configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configuration.nix b/configuration.nix index 365a957..7a38182 100644 --- a/configuration.nix +++ b/configuration.nix @@ -64,4 +64,8 @@ in { system.stateVersion = "18.09"; system.autoUpgrade.enable = true; + + nix.gc.automatic = true; + nix.gc.dates = "weekly"; + nix.gc.options = "--delete-older-than 30d"; }