1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/sh
- NIX_CONFIG=https://notabug.org/jgart/nixos_config/raw/master/configuration.nix
- #echo What is your network name?
- #read ssid
- #echo what is your network password?
- #read wifipassword
- #
- #wpa_supplicant -B -i wlp2s0 -c <(wpa_passphrase '$ssid' '$wifipassword')
- parted -s /dev/sda -- mklabel msdos
- parted -s /dev/sda -- mkpart primary 1MiB -8GiB
- parted -s /dev/sda -- mkpart primary linux-swap -8GiB 100%
- mkfs.btrfs -f -L nixos /dev/sda1
- mkswap -L swap /dev/sda2
- swapon /dev/sda2
- mount /dev/disk/by-label/nixos /mnt
- sleep 5
- nixos-generate-config --root /mnt
- curl $NIX_CONFIG > /mnt/etc/nixos/configuration.nix
- nixos-install
- reboot
- echo "Done! Rebooting!"
|