From 97305208793dbe6a916ac87a50077bd4d1200926 Mon Sep 17 00:00:00 2001 From: Sangmin Kim Date: Tue, 19 May 2026 13:27:53 +0900 Subject: [PATCH] add nix garbage collection module --- modules/gc.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/gc.nix b/modules/gc.nix index 790d589..2b0c621 100644 --- a/modules/gc.nix +++ b/modules/gc.nix @@ -1 +1,13 @@ -# TODO: Define garbage collection settings. +{ ... }: + +{ + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; + + nix.optimise.automatic = true; + + boot.tmp.cleanOnBoot = true; +}