From 1eb18e847b44e8b0973bc5c6b85d293e9031efdc Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 24 Sep 2023 22:59:00 -0400 Subject: [PATCH] nix: use nh for gc --- modules/nix.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/nix.nix b/modules/nix.nix index 906a990..e113a65 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -7,15 +7,14 @@ _: { nh = { enable = true; - clean.enable = true; + clean = { + enable = true; + dates = "weekly"; + extraArgs = "--keep-since 3d --keep 5"; + }; }; nix = { - gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 7d"; - }; settings = { extra-experimental-features = ["flakes" "nix-command"]; warn-dirty = false;