From 481fe107a5f71fe295dba506bfa241ac6b9157d1 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Fri, 2 Feb 2024 06:26:07 +0000 Subject: [PATCH] weekly automatic gc of nix store --- common/global/nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/global/nix.nix b/common/global/nix.nix index 8abef08..4a52908 100644 --- a/common/global/nix.nix +++ b/common/global/nix.nix @@ -1,3 +1,8 @@ { nix.settings.trusted-users = [ "root" "@wheel" ]; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; }