From 5eab965637166e3aa4fa47da6272c21afeda8c7f Mon Sep 17 00:00:00 2001 From: Nettika Date: Sat, 31 May 2025 15:51:01 -0700 Subject: [PATCH] Enable automatic nix garbage collection --- modules/common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/common.nix b/modules/common.nix index 5afec68..55df1ee 100755 --- a/modules/common.nix +++ b/modules/common.nix @@ -15,6 +15,12 @@ trusted-users = [ "@wheel" ]; }; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + users.users.nettika = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" ];