adding suggested code to get the two latest nixos releses

This commit is contained in:
Alan Roberts 2024-06-05 08:27:02 -04:00 committed by Martin Wimpress
parent 271e0eb7d7
commit 94035a5930
1 changed files with 2 additions and 1 deletions

View File

@ -906,7 +906,8 @@ function releases_nitrux() {
} }
function releases_nixos() { function releases_nixos() {
echo unstable 24.05 23.11 23.05 # unstable plus the two most recent releases
echo unstable $(web_pipe https://nix-channels.s3.amazonaws.com/?delimiter=/ | grep -o -P '(?<=<Key>nixos-)[0-9]+.[0-9]+(?=</Key>)' | sort -nr | head -n +2)
} }
function editions_nixos() { function editions_nixos() {