1
0

Updated install.sh to go with niri default archinstall profile

This commit is contained in:
Adrien Bouvais 2025-10-08 07:48:08 +00:00
parent f10fb1220b
commit 2777bd3e1f

View File

@ -2,66 +2,34 @@
set -e set -e
echo "--- Installing essential packages from Pacman ---"
sudo pacman -S --noconfirm --needed \ sudo pacman -S --noconfirm --needed \
niri \
kitty \
wofi \
xorg-xwayland \
base-devel \
git \ git \
kitty \
lazygit \ lazygit \
starship \ starship
seatd \
mako \
pipewire \
wireplumber \
xdg-desktop-portal \
xdg-desktop-portal-gtk
echo "--- Installing and configuring yay (AUR Helper) ---" sudo pacman -R --noconfirm alacritty
if ! command -v yay &> /dev/null; then
git clone https://aur.archlinux.org/yay.git /tmp/yay git clone https://aur.archlinux.org/yay.git /tmp/yay
(cd /tmp/yay && makepkg -si --noconfirm) (cd /tmp/yay && makepkg -si --noconfirm)
rm -rf /tmp/yay rm -rf /tmp/yay
else
echo "yay is already installed."
fi
echo "--- Installing packages from AUR using yay ---"
yay -S --noconfirm --needed \ yay -S --noconfirm --needed \
swayidle \
swaylock-effects \
waybar \
swaync \
wlogout \
ttf-firacode-nerd \ ttf-firacode-nerd \
neovim \ neovim \
yazi \ yazi \
firefox firefox
echo "--- Setting up user directories and dotfiles ---" mkdir -p "$HOME/tmp"
mkdir -p "$HOME/tmp" "$HOME/wallpapers" "$HOME/.config" "$HOME/.ssh"
git clone https://git.bouvais.lu/adrien/Dotfiles "/tmp/dotfiles" --depth 1 git clone https://git.bouvais.lu/adrien/Dotfiles "/tmp/dotfiles" --depth 1
cp -r "/tmp/dotfiles/.config/"* "$HOME/.config/" cp -r "/tmp/dotfiles/.config/"* "$HOME/.config/"
cp "/tmp/dotfiles/.bashrc" "$HOME/.bashrc" cp "/tmp/dotfiles/.bashrc" "$HOME/.bashrc"
mkdir -p "$HOME/wallpapers"
cp -r "/tmp/dotfiles/wallpapers/"* "$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.name "adrien"
git config --global user.email "git@bouvais.lu" git config --global user.email "git@bouvais.lu"
ssh-keygen -t rsa -b 4096 -C "git@bouvais.com" -f "$HOME/.ssh/id_rsa" -N "" 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."