From 87f60899c566abdb07ebb707b6ba880196bcced4 Mon Sep 17 00:00:00 2001 From: DuN0z Date: Wed, 5 Nov 2025 03:53:52 +0100 Subject: [PATCH] Add: automatic nix clean --- modules/common/nix.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/common/nix.nix b/modules/common/nix.nix index f1f6fd4..13de898 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -4,6 +4,12 @@ experimental-features = ["nix-command" "flakes"]; }; + nix.gc = { + automatic = true ; + dates = "daily" ; + options = "--delete-older-than 7d" ; + }; + nixpkgs.config = { # allowUnfree = true; # allowUnsupportedSystem = true;