From ef4716c476fc5e0a55e6a91bd2edd0c74597d8e9 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Tue, 29 Oct 2024 00:09:25 -0500 Subject: [PATCH] add a wrapper for nix-gc --- builds/rebuild/nix-sanitation | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 builds/rebuild/nix-sanitation diff --git a/builds/rebuild/nix-sanitation b/builds/rebuild/nix-sanitation new file mode 100755 index 0000000..1f8713e --- /dev/null +++ b/builds/rebuild/nix-sanitation @@ -0,0 +1,7 @@ +#!/bin/sh + +printf "clearing out nix caches\n" + +sudo nix-collect-garbage -d +nix-collect-garbage -d +sudo nix-store --optimize