From 347556ea09821c981a3942d083ef1e75d3adca59 Mon Sep 17 00:00:00 2001 From: notohh Date: Wed, 1 Mar 2023 01:57:26 -0500 Subject: [PATCH] feat: enable gc --- hosts/hime/default.nix | 6 ++++++ hosts/sutakku/default.nix | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/hosts/hime/default.nix b/hosts/hime/default.nix index 300c2cb..e6ecee3 100644 --- a/hosts/hime/default.nix +++ b/hosts/hime/default.nix @@ -84,6 +84,12 @@ experimental-features = nix-command flakes warn-dirty = false ''; + settings.auto-optimise-store = true; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; }; system.stateVersion = "23.05"; diff --git a/hosts/sutakku/default.nix b/hosts/sutakku/default.nix index 0d6cb67..5cddaff 100644 --- a/hosts/sutakku/default.nix +++ b/hosts/sutakku/default.nix @@ -77,6 +77,12 @@ experimental-features = nix-command flakes warn-dirty = false ''; + settings.auto-optimise-store = true; + gc = { + automatic = true; + dates = "weekly"; + options = "delete-older-than 7d"; + }; }; system.stateVersion = "23.05";