From fd79c661a1d8c68aa158e11ca90e8cf2b99ab1cc Mon Sep 17 00:00:00 2001 From: Prouk Date: Sun, 11 Oct 2026 00:04:05 +0200 Subject: [PATCH] go to nh for auto cleaning --- nixos/programs/nh.nix | 2 ++ nixos/system/nix.nix | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/nixos/programs/nh.nix b/nixos/programs/nh.nix index 137e3f0..fcd5d7d 100644 --- a/nixos/programs/nh.nix +++ b/nixos/programs/nh.nix @@ -4,6 +4,8 @@ # Cleanup stays on nix.gc (see system/nix.nix) to avoid two GC timers. programs.nh = { enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; flake = "/home/prouk/flake"; }; } diff --git a/nixos/system/nix.nix b/nixos/system/nix.nix index d17247d..3f1464f 100644 --- a/nixos/system/nix.nix +++ b/nixos/system/nix.nix @@ -20,11 +20,6 @@ nixpkgs.config.allowUnfree = true; # Housekeeping - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 14d"; - }; nix.optimise.automatic = true; # Run unpatched dynamic binaries.