mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Add Dev One, remove desktops for now.
This commit is contained in:
parent
8d26d86a5d
commit
8063942f61
1 changed files with 5 additions and 35 deletions
40
install.sh
40
install.sh
|
@ -44,6 +44,7 @@ Which device are you installing to?
|
||||||
5) Thelio NVIDIA (thelio-b1)
|
5) Thelio NVIDIA (thelio-b1)
|
||||||
6) Darter Pro (darp9)
|
6) Darter Pro (darp9)
|
||||||
7) Virtual Machine
|
7) Virtual Machine
|
||||||
|
8) HP Dev One
|
||||||
0) Generic
|
0) Generic
|
||||||
EOF
|
EOF
|
||||||
read deviceChoice
|
read deviceChoice
|
||||||
|
@ -75,42 +76,11 @@ elif [ $deviceChoice = 6 ]; then
|
||||||
elif [ $deviceChoice = 7 ]; then
|
elif [ $deviceChoice = 7 ]; then
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/systems/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/systems/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||||
|
|
||||||
|
elif [ $deviceChoice = 8 ]; then
|
||||||
|
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/systems/flake.nix > flake.nix; sudo mv -f flake.nix /mnt/etc/nixos/
|
||||||
|
sudo nixos-install --flake /mnt/etc/nixos#dev-one
|
||||||
|
|
||||||
elif [ $deviceChoice = 0 ]; then
|
elif [ $deviceChoice = 0 ]; then
|
||||||
curl https://gitlab.com/ahoneybun/nix-configs/-/raw/flake/flake.nix > flake.nix; sudo mv -f flake.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/
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 4: Choosing a predefined desktop/window manager file to use
|
|
||||||
|
|
||||||
cat << EOF
|
|
||||||
|
|
||||||
Which Desktop Environment do you want?
|
|
||||||
1) Plasma
|
|
||||||
2) GNOME
|
|
||||||
3) Pantheon
|
|
||||||
4) Sway
|
|
||||||
0) None or N/A
|
|
||||||
EOF
|
|
||||||
read desktopChoice
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
# Install
|
|
||||||
sudo nixos-install --flake /mnt/etc/nixos#nixos
|
|
||||||
#sudo nixos-install
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue