From 5152ec17aacf76c05cb45909433d66aa34b161a9 Mon Sep 17 00:00:00 2001 From: atagen Date: Wed, 6 Mar 2024 12:13:53 +1100 Subject: [PATCH] gc --- home/home.nix | 6 ++++++ system/configuration.nix | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/home/home.nix b/home/home.nix index de4c42d..55e848b 100644 --- a/home/home.nix +++ b/home/home.nix @@ -23,6 +23,12 @@ in { inputs.nix-index-database.hmModules.nix-index ]; + nix.gc = { + automatic = true; + frequency = "weekly"; + options = "--delete-older-than 7d"; + }; + home.packages = with pkgs; [ thunderbird diff --git a/system/configuration.nix b/system/configuration.nix index cfc2859..c158711 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -38,6 +38,11 @@ keep-outputs = true keep-derivations = true ''; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; }; imports = [];