From 92b7c750d867e8c1e09ceb0facc6498745f06400 Mon Sep 17 00:00:00 2001 From: chase Date: Wed, 14 May 2025 14:28:49 -0400 Subject: [PATCH] Added garbage collection/storage optimization --- configuration.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index bd69084..fbc0461 100644 --- a/configuration.nix +++ b/configuration.nix @@ -15,8 +15,21 @@ in ]; # Bootloader. - boot.loader.systemd-boot.enable = true; + boot.loader.systemd-boot = { + enable = true; + configurationLimit = 10; + }; boot.loader.efi.canTouchEfiVariables = true; + + # Garbage collection + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 1w"; + }; + + # Optimize store + nix.settings.auto-optimise-store = true; # Use latest stable kernel boot.kernelPackages = pkgs.linuxPackages_latest;