From 46b21370bd543966302c407e1201c2bd09d43650 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 15 Feb 2025 12:18:59 -0500 Subject: [PATCH] Auto-clean-up steam deck nix store. --- nix/steam_deck/configuration/home.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nix/steam_deck/configuration/home.nix b/nix/steam_deck/configuration/home.nix index 696a772..cbb12f9 100644 --- a/nix/steam_deck/configuration/home.nix +++ b/nix/steam_deck/configuration/home.nix @@ -29,6 +29,14 @@ "flakes" ]; }; + # Automatic garbage collection + nix.gc = { + # Runs nix-collect-garbage --delete-older-than 30d + automatic = true; + randomizedDelaySec = "14m"; + options = "--delete-older-than 30d"; + }; + nix.settings.auto-optimise-store = true; home.packages = with pkgs; [ pkgs.nixgl.nixGLIntel