From 3d8fd14805cb00a94f93b220740a5c994292dfdb Mon Sep 17 00:00:00 2001 From: Frankie B Date: Sat, 26 Aug 2023 21:20:21 +0100 Subject: Enable auto gc --- hosts/nixpad/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hosts/nixpad/configuration.nix') diff --git a/hosts/nixpad/configuration.nix b/hosts/nixpad/configuration.nix index 5876618..3f7ea27 100644 --- a/hosts/nixpad/configuration.nix +++ b/hosts/nixpad/configuration.nix @@ -65,6 +65,13 @@ # Enable experimental features nix.settings.extra-experimental-features = ["flakes" "nix-command"]; + # Enable automatic gc + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + # Enable CUPS to print documents. services.printing.enable = true; -- cgit v1.2.3-54-g00ecf