Nix-Config/bin/gc.bash

6 lines
95 B
Bash

#!/usr/bin/env bash
nix-collect-garbage -d
sudo rm /nix/var/nix/gcroots/auto/*
nix-store --gc