From d7cb4b05ea72f8458416a752a0d60a839f70a2ca Mon Sep 17 00:00:00 2001 From: Joonas Rautiola Date: Mon, 20 Jan 2025 12:29:12 +0200 Subject: [PATCH] Add home-manager GC --- modules/default.nix | 1 + modules/home/common.nix | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/modules/default.nix b/modules/default.nix index daeb9c3..ba259be 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -73,6 +73,7 @@ in yubikey dev home + gc ]; }; }; diff --git a/modules/home/common.nix b/modules/home/common.nix index 87dc6e3..46f3a7d 100644 --- a/modules/home/common.nix +++ b/modules/home/common.nix @@ -25,6 +25,12 @@ fzf.enable = true; }; + nix.gc = { + automatic = true; + frequency = "weekly"; + options = "--delete-older-than 14d"; + }; + home.packages = with pkgs; [ # development python3