mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Switch other systems to the generic flake and remove extra line at the end of the script
This commit is contained in:
parent
14b72a9dcd
commit
490a412795
1 changed files with 4 additions and 6 deletions
10
install.sh
10
install.sh
|
@ -53,15 +53,15 @@ read deviceChoice
|
|||
# Update the second command to the file name that matches your system .nix file
|
||||
|
||||
if [ $deviceChoice = 1 ]; then
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/systems/x86_64/shepard/configuration.nix > shepard.nix; sudo mv -f shepard.nix /mnt/etc/nixos/
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||
sudo sed -i "11 i \ ./shepard.nix" /mnt/etc/nixos/configuration.nix
|
||||
|
||||
elif [ $deviceChoice = 2 ]; then
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/systems/x86_64/garrus/configuration.nix > garrus.nix; sudo mv -f garrus.nix /mnt/etc/nixos/
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||
sudo sed -i "11 i \ ./garrus.nix" /mnt/etc/nixos/configuration.nix
|
||||
|
||||
elif [ $deviceChoice = 3 ]; then
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/systems/x86_64/hp-omen.nix > hp-omen.nix; sudo mv -f hp-omen.nix /mnt/etc/nixos/
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||
sudo sed -i "11 i \ ./hp-omen.nix" /mnt/etc/nixos/configuration.nix
|
||||
|
||||
elif [ $deviceChoice = 4 ]; then
|
||||
|
@ -69,10 +69,8 @@ elif [ $deviceChoice = 4 ]; then
|
|||
sudo sed -i "11 i \ ./jaal.nix" /mnt/etc/nixos/configuration.nix
|
||||
|
||||
elif [ $deviceChoice = 5 ]; then
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/systems/x86_64/thelio-nvidia.nix > thelio-nvidia.nix; sudo mv -f thelio-nvidia.nix /mnt/etc/nixos/
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||
sudo sed -i "11 i \ ./thelio-nvidia.nix" /mnt/etc/nixos/configuration.nix
|
||||
# Disable latest kernel for Thelio with NVIDIA GPU
|
||||
sudo sed -i "s/boot.kernelPackages/# boot.kernelPackages/g" /mnt/etc/nixos/configuration.nix
|
||||
|
||||
elif [ $deviceChoice = 6 ]; then
|
||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/systems/x86_64/darp9.nix > darp9.nix; sudo mv -f darp9.nix /mnt/etc/nixos/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue