#!/usr/bin/env bash set -x nix-env --delete-generations +2 home-manager expire-generations "-10 days" sudo nix-collect-garbage --delete-older-than 10 sudo nixos-rebuild boot