update install script
This commit is contained in:
parent
8761dd3db5
commit
62bb8370d6
|
@ -4,9 +4,11 @@ if [ "$(id -u)" -eq 1000 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lsblk
|
lsblk
|
||||||
|
|
||||||
read -p "Drive name? (/dev/vda): " DRIVE
|
read -p "Drive name? (/dev/vda): " DRIVE
|
||||||
|
|
||||||
|
ls ../boxes
|
||||||
read -p "NixOS configuration? (virtbox): " NIXOS_CONFIG
|
read -p "NixOS configuration? (virtbox): " NIXOS_CONFIG
|
||||||
|
|
||||||
read -p "Reboot? (yes/no, default 'yes'): " REBOOT
|
read -p "Reboot? (yes/no, default 'yes'): " REBOOT
|
||||||
|
|
||||||
umount -f /mnt/boot
|
umount -f /mnt/boot
|
||||||
|
@ -69,7 +71,7 @@ swapon "$DRIVE"2
|
||||||
nixos-generate-config --root /mnt
|
nixos-generate-config --root /mnt
|
||||||
git clone https://git.beepboop.systems/rndusr/dot_testing /mnt/root/dot_testing
|
git clone https://git.beepboop.systems/rndusr/dot_testing /mnt/root/dot_testing
|
||||||
cp /mnt/etc/nixos/hardware-configuration.nix /mnt/root/dot_testing/
|
cp /mnt/etc/nixos/hardware-configuration.nix /mnt/root/dot_testing/
|
||||||
yes | nixos-install -I nixos-config=/mnt/root/dot_testing/$NIXOS_CONFIG.nix --cores 0
|
yes | nixos-install -I nixos-config=/mnt/root/dot_testing/boxes/$NIXOS_CONFIG.nix --cores 0
|
||||||
mv /mnt/root/dot_testing /mnt/home/usr/dot_testing
|
mv /mnt/root/dot_testing /mnt/home/usr/dot_testing
|
||||||
|
|
||||||
if [ "$REBOOT" = "yes" ]; then
|
if [ "$REBOOT" = "yes" ]; then
|
||||||
|
|
Loading…
Reference in New Issue