2024-10-19 02:39:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-10-19 02:41:11 +02:00
|
|
|
echo "this is meant to be run from the iso!!!"
|
2024-10-19 02:39:35 +02:00
|
|
|
if [ -e "/mnt/etc/nixos" ] ; then
|
|
|
|
echo "iso detected. continue!"
|
|
|
|
else
|
|
|
|
echo "you don't appear to be in the install iso."
|
|
|
|
echo -n "are you SURE??? (y/N) "
|
|
|
|
read sure
|
|
|
|
if ! [ "$sure" = "y" ] ; then
|
|
|
|
echo "ok. exiting."
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
echo "i will continue."
|
|
|
|
fi
|
|
|
|
|
2024-10-19 02:41:11 +02:00
|
|
|
echo "> setting up channels:"
|
2024-10-19 02:39:35 +02:00
|
|
|
echo deleting old
|
|
|
|
nix-channel --remove nixos
|
|
|
|
echo adding os channel
|
|
|
|
nix-channel --add "https://channels.nixos.org/nixos-unstable" nixos
|
|
|
|
echo adding pkgs channel
|
|
|
|
nix-channel --add "https://channels.nixos.org/nixpkgs-unstable" nixpkgs
|
|
|
|
echo updating
|
|
|
|
nix-channel --update
|
2024-10-19 02:41:11 +02:00
|
|
|
echo "> all set."
|