From 47d6427fa6d706b749636b49daae415df6c990b5 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 6 Jun 2021 16:58:32 +0200 Subject: Add nix_garbage collect script --- nixhome/Scripts/nix_garbage | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 nixhome/Scripts/nix_garbage diff --git a/nixhome/Scripts/nix_garbage b/nixhome/Scripts/nix_garbage new file mode 100755 index 0000000..449e807 --- /dev/null +++ b/nixhome/Scripts/nix_garbage @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -x + +nix-env --delete-generations 10d +home-manager expire-generations "-10 days" +sudo nix-collect-garbage --delete-older-than 10d + -- cgit v1.2.3