summaryrefslogtreecommitdiff
path: root/nixhome/Scripts/nix_garbage
blob: db492abfce0040c5357af0a632b2163719e161b8 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env bash
set -x

nix-env --delete-generations old
home-manager expire-generations "0 days"
sudo nix-collect-garbage --delete-older-than 10
sudo nixos-rebuild boot