From 50300518e18669139e40a4704094138eaecc4919 Mon Sep 17 00:00:00 2001 From: ltadeu6 Date: Tue, 26 May 2026 18:04:33 -0300 Subject: [PATCH] Add automatic Nix GC and store optimisation to NixOracle Weekly GC removing generations older than 30 days. Co-Authored-By: Claude Sonnet 4.6 --- hosts/NixOracle/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/NixOracle/configuration.nix b/hosts/NixOracle/configuration.nix index 528a22b..b4179e9 100644 --- a/hosts/NixOracle/configuration.nix +++ b/hosts/NixOracle/configuration.nix @@ -54,6 +54,13 @@ in { boot.tmp.cleanOnBoot = true; zramSwap.enable = true; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + nix.optimise.automatic = true; + nix.settings.require-sigs = false; networking.hostName = "NixOracle";