Compare commits

..

No commits in common. "cf07fd267e029abc151849084b3d99eaf45c6eb9" and "a6574091a821d33d938ec2a8c7d9a0f1d477d270" have entirely different histories.

View file

@ -1,3 +1,7 @@
# Figure out how much RAM the system has
# then sets it as a variable for hibernation support
ramTotal=$(free -h | awk '/^Mem:/{print $2}'| awk -FG {'print$1'})
# Step 1: Choosing the drive for the installation # Step 1: Choosing the drive for the installation
## Detect and list the drives. ## Detect and list the drives.
@ -39,6 +43,7 @@ Which device are you installing to?
1) Virtual Machine 1) Virtual Machine
2) Lemur Pro 13 (Garrus) 2) Lemur Pro 13 (Garrus)
3) nebula49 (Shepard) 3) nebula49 (Shepard)
4) Home Server (EDI) - Do Not Use
0) Generic 0) Generic
EOF EOF
@ -49,9 +54,6 @@ echo ""
## Copies over the disko file for running `nixos-install` ## Copies over the disko file for running `nixos-install`
sudo mv /tmp/disko-config.nix /mnt/etc/nixos sudo mv /tmp/disko-config.nix /mnt/etc/nixos
## Workaround for `no free space` error
sudo nix-collect-garbage
if [ $hostChoice = 1 ]; then if [ $hostChoice = 1 ]; then
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/hosts/x86_64/vm/configuration.nix > vm.nix; sudo mv -f vm.nix /mnt/etc/nixos/ curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/hosts/x86_64/vm/configuration.nix > vm.nix; sudo mv -f vm.nix /mnt/etc/nixos/
sudo nixos-install --flake /mnt/etc/nixos#vm sudo nixos-install --flake /mnt/etc/nixos#vm
@ -66,6 +68,10 @@ elif [ $hostChoice = 3 ]; then
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/gnome.nix > gnome.nix; sudo mv -f gnome.nix /mnt/etc/nixos/ curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/gnome.nix > gnome.nix; sudo mv -f gnome.nix /mnt/etc/nixos/
sudo nixos-install --flake /mnt/etc/nixos#shepard sudo nixos-install --flake /mnt/etc/nixos#shepard
elif [ $hostChoice = 4 ]; then
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/hosts/x86_64/edi/configuration.nix > edi.nix; sudo mv -f edi.nix /mnt/etc/nixos/
sudo nixos-install --flake /mnt/etc/nixos#edi
elif [ $hostChoice = 0 ]; then elif [ $hostChoice = 0 ]; then
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/ curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
sudo nixos-install --flake /mnt/etc/nixos#nixos sudo nixos-install --flake /mnt/etc/nixos#nixos