Skip to content

Commit

Permalink
adding suggested code to get the two latest nixos releses
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Roberts authored and flexiondotorg committed Jun 24, 2024
1 parent 271e0eb commit 94035a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,8 @@ function releases_nitrux() {
}

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() {
Expand Down

0 comments on commit 94035a5

Please sign in to comment.