mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Compare commits
2 commits
a6574091a8
...
cf07fd267e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cf07fd267e | ||
![]() |
cd1bea5399 |
1 changed files with 3 additions and 9 deletions
12
install.sh
12
install.sh
|
@ -1,7 +1,3 @@
|
|||
# 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
|
||||
|
||||
## Detect and list the drives.
|
||||
|
@ -43,7 +39,6 @@ Which device are you installing to?
|
|||
1) Virtual Machine
|
||||
2) Lemur Pro 13 (Garrus)
|
||||
3) nebula49 (Shepard)
|
||||
4) Home Server (EDI) - Do Not Use
|
||||
0) Generic
|
||||
EOF
|
||||
|
||||
|
@ -54,6 +49,9 @@ echo ""
|
|||
## Copies over the disko file for running `nixos-install`
|
||||
sudo mv /tmp/disko-config.nix /mnt/etc/nixos
|
||||
|
||||
## Workaround for `no free space` error
|
||||
sudo nix-collect-garbage
|
||||
|
||||
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/
|
||||
sudo nixos-install --flake /mnt/etc/nixos#vm
|
||||
|
@ -68,10 +66,6 @@ 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/
|
||||
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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue