Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env bash
channels=${1:-nixos-15.09-small nixos-15.09 nixos-unstable-small nixos-unstable nixpkgs-unstable}
site=${2:-https://nixos.org/channels}
getChannelVersion () {
basename $(curl -ILs -w %{url_effective} -o /dev/null $1) | cut -d - -f 2
}
for name in ${channels[@]}