mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Update install.sh
This commit is contained in:
parent
3263d94099
commit
fbe2438d64
1 changed files with 30 additions and 30 deletions
60
install.sh
60
install.sh
|
@ -96,36 +96,6 @@ echo "Password is hashed so it is not plaintext"
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/luks/configuration.nix > configuration.nix; sudo mv -f configuration.nix /mnt/etc/nixos/
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/luks/configuration.nix > configuration.nix; sudo mv -f configuration.nix /mnt/etc/nixos/
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/programs.nix > programs.nix; sudo mv -f programs.nix /mnt/etc/nixos/
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/programs.nix > programs.nix; sudo mv -f programs.nix /mnt/etc/nixos/
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "Which Desktop Environment do you want?"
|
|
||||||
echo "1) Plasma"
|
|
||||||
echo "2) GNOME"
|
|
||||||
echo "3) Pantheon"
|
|
||||||
echo "4) Sway"
|
|
||||||
echo "0) None or N/A"
|
|
||||||
read desktopChoice
|
|
||||||
|
|
||||||
# Change the URL to match where you are hosting your DE/WM .nix file
|
|
||||||
# Update the second command to the file name that matches your DE/WM .nix file
|
|
||||||
|
|
||||||
if [ $desktopChoice = 1 ]; then
|
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/plasma.nix > plasma.nix; sudo mv -f plasma.nix /mnt/etc/nixos/
|
|
||||||
sudo sed -i "10 i \ ./plasma.nix" /mnt/etc/nixos/configuration.nix
|
|
||||||
|
|
||||||
elif [ $desktopChoice = 2 ]; then
|
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/gnome.nix > gnome.nix; sudo mv -f gnome.nix /mnt/etc/nixos/
|
|
||||||
sudo sed -i "10 i \ ./gnome.nix" /mnt/etc/nixos/configuration.nix
|
|
||||||
|
|
||||||
elif [ $desktopChoice = 3 ]; then
|
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/pantheon.nix > pantheon.nix; sudo mv -f pantheon.nix /mnt/etc/nixos/
|
|
||||||
sudo sed -i "10 i \ ./pantheon.nix" /mnt/etc/nixos/configuration.nix
|
|
||||||
|
|
||||||
elif [ $desktopChoice = 4 ]; then
|
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/sway.nix > sway.nix; sudo mv -f sway.nix /mnt/etc/nixos/
|
|
||||||
sudo sed -i "10 i \ ./sway.nix" /mnt/etc/nixos/configuration.nix
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Which device are you installing to?"
|
echo "Which device are you installing to?"
|
||||||
echo "1) Oryx Pro (oryp6)"
|
echo "1) Oryx Pro (oryp6)"
|
||||||
|
@ -173,6 +143,36 @@ elif [ $deviceChoice = 7 ]; then
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/luks/systems/vm.nix > configuration.nix; sudo mv -f configuration.nix /mnt/etc/nixos/
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/luks/systems/vm.nix > configuration.nix; sudo mv -f configuration.nix /mnt/etc/nixos/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Which Desktop Environment do you want?"
|
||||||
|
echo "1) Plasma"
|
||||||
|
echo "2) GNOME"
|
||||||
|
echo "3) Pantheon"
|
||||||
|
echo "4) Sway"
|
||||||
|
echo "0) None or N/A"
|
||||||
|
read desktopChoice
|
||||||
|
|
||||||
|
# Change the URL to match where you are hosting your DE/WM .nix file
|
||||||
|
# Update the second command to the file name that matches your DE/WM .nix file
|
||||||
|
|
||||||
|
if [ $desktopChoice = 1 ]; then
|
||||||
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/plasma.nix > plasma.nix; sudo mv -f plasma.nix /mnt/etc/nixos/
|
||||||
|
sudo sed -i "10 i \ ./plasma.nix" /mnt/etc/nixos/configuration.nix
|
||||||
|
|
||||||
|
elif [ $desktopChoice = 2 ]; then
|
||||||
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/gnome.nix > gnome.nix; sudo mv -f gnome.nix /mnt/etc/nixos/
|
||||||
|
sudo sed -i "10 i \ ./gnome.nix" /mnt/etc/nixos/configuration.nix
|
||||||
|
|
||||||
|
elif [ $desktopChoice = 3 ]; then
|
||||||
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/pantheon.nix > pantheon.nix; sudo mv -f pantheon.nix /mnt/etc/nixos/
|
||||||
|
sudo sed -i "10 i \ ./pantheon.nix" /mnt/etc/nixos/configuration.nix
|
||||||
|
|
||||||
|
elif [ $desktopChoice = 4 ]; then
|
||||||
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/sway.nix > sway.nix; sudo mv -f sway.nix /mnt/etc/nixos/
|
||||||
|
sudo sed -i "10 i \ ./sway.nix" /mnt/etc/nixos/configuration.nix
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# Replace LUKS device
|
# Replace LUKS device
|
||||||
sudo sed -i "s#/dev/sda#$rootName#g" /mnt/etc/nixos/configuration.nix
|
sudo sed -i "s#/dev/sda#$rootName#g" /mnt/etc/nixos/configuration.nix
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue