From 2b06eefb5eec4151c4bc7e4298dde1c7547eb5b0 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 4 Jul 2023 12:22:54 +0300 Subject: [PATCH] add garbage collection --- configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configuration.nix b/configuration.nix index 8412237e..fc9919e8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -166,6 +166,13 @@ ]; }; + # garbage collection + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + home-manager.useUserPackages = true; home-manager.users.sako = { pkgs, ...}: { # CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!!