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