From 416c19b1c3f2672cfeb57561401b95861f0485e4 Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 18 Jun 2021 12:45:26 +0200 Subject: [PATCH] Automatic garbage collection --- configuration/common/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configuration/common/default.nix b/configuration/common/default.nix index f2c0dca..8ee1230 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -38,6 +38,12 @@ services.openssh.challengeResponseAuthentication = false; services.openssh.permitRootLogin = lib.mkDefault "no"; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + services.nginx = { enableReload = true; recommendedGzipSettings = true;