Updated install.sh to go with niri default archinstall profile
This commit is contained in:
parent
f10fb1220b
commit
2777bd3e1f
54
install.sh
54
install.sh
@ -2,66 +2,34 @@
|
||||
|
||||
set -e
|
||||
|
||||
echo "--- Installing essential packages from Pacman ---"
|
||||
sudo pacman -S --noconfirm --needed \
|
||||
niri \
|
||||
kitty \
|
||||
wofi \
|
||||
xorg-xwayland \
|
||||
base-devel \
|
||||
git \
|
||||
kitty \
|
||||
lazygit \
|
||||
starship \
|
||||
seatd \
|
||||
mako \
|
||||
pipewire \
|
||||
wireplumber \
|
||||
xdg-desktop-portal \
|
||||
xdg-desktop-portal-gtk
|
||||
starship
|
||||
|
||||
echo "--- Installing and configuring yay (AUR Helper) ---"
|
||||
if ! command -v yay &> /dev/null; then
|
||||
git clone https://aur.archlinux.org/yay.git /tmp/yay
|
||||
(cd /tmp/yay && makepkg -si --noconfirm)
|
||||
rm -rf /tmp/yay
|
||||
else
|
||||
echo "yay is already installed."
|
||||
fi
|
||||
sudo pacman -R --noconfirm alacritty
|
||||
|
||||
git clone https://aur.archlinux.org/yay.git /tmp/yay
|
||||
(cd /tmp/yay && makepkg -si --noconfirm)
|
||||
rm -rf /tmp/yay
|
||||
|
||||
echo "--- Installing packages from AUR using yay ---"
|
||||
yay -S --noconfirm --needed \
|
||||
swayidle \
|
||||
swaylock-effects \
|
||||
waybar \
|
||||
swaync \
|
||||
wlogout \
|
||||
ttf-firacode-nerd \
|
||||
neovim \
|
||||
yazi \
|
||||
firefox
|
||||
|
||||
echo "--- Setting up user directories and dotfiles ---"
|
||||
mkdir -p "$HOME/tmp" "$HOME/wallpapers" "$HOME/.config" "$HOME/.ssh"
|
||||
|
||||
mkdir -p "$HOME/tmp"
|
||||
git clone https://git.bouvais.lu/adrien/Dotfiles "/tmp/dotfiles" --depth 1
|
||||
|
||||
cp -r "/tmp/dotfiles/.config/"* "$HOME/.config/"
|
||||
cp "/tmp/dotfiles/.bashrc" "$HOME/.bashrc"
|
||||
mkdir -p "$HOME/wallpapers"
|
||||
cp -r "/tmp/dotfiles/wallpapers/"* "$HOME/wallpapers/"
|
||||
|
||||
rm -rf "/tmp/dotfiles"
|
||||
rm -rf /tmp/yay
|
||||
|
||||
echo "--- Enabling system services (seatd for Niri) ---"
|
||||
# Add your user to the 'seat' group to grant hardware access
|
||||
sudo usermod -aG seat "$USER"
|
||||
# Enable the seatd service to run on boot
|
||||
sudo systemctl enable seatd.service
|
||||
|
||||
echo "--- Configuring Git and SSH ---"
|
||||
git config --global user.name "adrien"
|
||||
git config --global user.email "git@bouvais.lu"
|
||||
ssh-keygen -t rsa -b 4096 -C "git@bouvais.com" -f "$HOME/.ssh/id_rsa" -N ""
|
||||
|
||||
echo "--- Installation complete! ---"
|
||||
echo "It is recommended to reboot now for all changes to take effect."
|
||||
echo "After rebooting, log in and type 'niri' to start your session."
|
||||
ssh-keygen -t rsa -b 4096 -C "git@bouvais.com" -f "$HOME/.ssh/id_rsa" -N ""
|
||||
Loading…
x
Reference in New Issue
Block a user