Just a quick and fun script to somewhat automate the process for ugprading from one NixOS release to the next
#!/usr/bin/env bash
user=$(whoami)
current=$(sudo nix-channel --list | cut -d "-" -f2)
if [ $user != 'root' ];
then
echo "Please run script as root user"
else
echo Current System Version: $current
read -r -p "What version of NixOS are you upgrading to? " usrIn
nix-channel --add https://channels.nixos.org/nixos-"$usrIn" nixos
fi