From 10322f9e9761a3178936eee3aa9c35fb46be9ab2 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 14 Nov 2024 20:13:15 +0100 Subject: Automatically reclaim storage space Signed-off-by: Mel --- modules/nix.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/nix.nix') diff --git a/modules/nix.nix b/modules/nix.nix index d98f64d..cde962a 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -2,6 +2,17 @@ { nix = { + optimise = { + automatic = true; + dates = [ "06:00" ]; + }; + + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; + # add compat scripts to the environment, # to allow nixos-option to find the configuration nixPath = [ -- cgit 1.4.1