From 9123dacc1bbaa9c04b896bd6e1d9ac6553e51e2f Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Tue, 13 Aug 2024 11:48:37 +0200 Subject: [PATCH] nix: enabled nh garbage collection again --- modules/cli/nh.nix | 2 +- modules/system/nix/module.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cli/nh.nix b/modules/cli/nh.nix index fa007c1..c82d11e 100644 --- a/modules/cli/nh.nix +++ b/modules/cli/nh.nix @@ -11,7 +11,7 @@ in { config = mkIf cfg.enable { programs.nh = { enable = true; - clean.enable = false; + clean.enable = true; clean.extraArgs = "--keep-since 4d --keep 3"; flake = "/home/vali/projects/nichts"; }; diff --git a/modules/system/nix/module.nix b/modules/system/nix/module.nix index ae32c7f..60debff 100644 --- a/modules/system/nix/module.nix +++ b/modules/system/nix/module.nix @@ -22,7 +22,7 @@ # Collect garbage gc = { - automatic = true; + automatic = false; dates = "20:00"; options = "--delete-older-than 7d"; persistent = false; # don't try to catch up on missed GC runs