Talk: NixOS Generations Trimmer
From NixOS Wiki
The script linked here does not pass shellcheck, might be worth updating https://github.com/Leha44581/LehaNixConfig/blob/master/scripts/trim-generations.sh
The script linked here does not pass shellcheck, might be worth updating https://github.com/Leha44581/LehaNixConfig/blob/master/scripts/trim-generations.sh