Updated networking for sampledb and media

This commit is contained in:
Random936
2024-10-31 13:23:46 -07:00
parent 0b5337ec0f
commit 1ce83d0f37
5 changed files with 53 additions and 37 deletions

View File

@@ -1,14 +1,23 @@
#!/usr/bin/env bash
STATE_VERSION="24.05"
STATE_VERSION="$1"
if [ $(id -u) != 0 ]; then
echo "This script must be run as root."
exit
fi
if [[ $1 == "" ]]; then
echo "Usage: $0 <STATE_VERSION|unstable>"
exit
fi
echo "Adding home-manager:${STATE_VERSION} to nix channels..."
nix-channel --add "https://github.com/nix-community/home-manager/archive/release-${STATE_VERSION}.tar.gz" home-manager
if [[ $STATE_VERSION == "unstable" ]]; then
nix-channel --add "https://github.com/nix-community/home-manager/archive/master.tar.gz" home-manager
else
nix-channel --add "https://github.com/nix-community/home-manager/archive/release-${STATE_VERSION}.tar.gz" home-manager
fi
echo "Updating nix channels..."
nix-channel --update