From ed1b61b87646524323c57de45bc327399958b6df Mon Sep 17 00:00:00 2001 From: FReenen Date: Fri, 26 Apr 2024 19:08:53 +0200 Subject: [PATCH] enable garbage collection --- configuration.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 68f082f..c3106a6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -81,6 +81,13 @@ # enableSSHSupport = true; # }; + # Automatic Garbage Collection + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave @@ -88,5 +95,4 @@ # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.05"; # Did you read the comment? - }