From 277139f855cd8d44e56a93f0e7257759f3ba02e6 Mon Sep 17 00:00:00 2001 From: Origami404 Date: Sat, 22 Jun 2024 20:40:59 +0800 Subject: [PATCH] [config] reduce /nix size --- configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configuration.nix b/configuration.nix index 2117c7a..6d092fb 100644 --- a/configuration.nix +++ b/configuration.nix @@ -22,6 +22,7 @@ grub = { efiSupport = true; device = "nodev"; + configurationLimit = 10; }; }; @@ -35,6 +36,13 @@ substituters = [ "https://mirrors.ustc.edu.cn/nix-channels/store" ]; + auto-optimise-store = true; + }; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 1w"; }; # List packages installed in system profile. To search, run: