Added essential packages to be use with archinstall minimal profile
This commit is contained in:
parent
9907e8f6ff
commit
ead2dd9d44
44
install.sh
44
install.sh
@ -2,36 +2,64 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
echo "--- Installing essential packages from Pacman ---"
|
||||||
sudo pacman -S --noconfirm --needed \
|
sudo pacman -S --noconfirm --needed \
|
||||||
niri \
|
niri \
|
||||||
|
kitty \
|
||||||
|
wofi \
|
||||||
|
xorg-xwayland \
|
||||||
base-devel \
|
base-devel \
|
||||||
git \
|
git \
|
||||||
lazygit \
|
lazygit \
|
||||||
starship
|
starship \
|
||||||
|
seatd \
|
||||||
|
mako \
|
||||||
|
pipewire \
|
||||||
|
wireplumber \
|
||||||
|
xdg-desktop-portal \
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
|
||||||
git clone https://aur.archlinux.org/yay.git /tmp/yay
|
echo "--- Installing and configuring yay (AUR Helper) ---"
|
||||||
(cd /tmp/yay && makepkg -si --noconfirm)
|
if ! command -v yay &> /dev/null; then
|
||||||
rm -rf /tmp/yay
|
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
|
||||||
|
|
||||||
|
echo "--- Installing packages from AUR using yay ---"
|
||||||
yay -S --noconfirm --needed \
|
yay -S --noconfirm --needed \
|
||||||
swayidle \
|
swayidle \
|
||||||
swaylock \
|
swaylock-effects \
|
||||||
waybar \
|
waybar \
|
||||||
ttf-firacode-nerd \
|
ttf-firacode-nerd \
|
||||||
neovim \
|
neovim \
|
||||||
yazi \
|
yazi \
|
||||||
firefox
|
firefox
|
||||||
|
|
||||||
mkdir -p "$HOME/tmp"
|
echo "--- Setting up user directories and dotfiles ---"
|
||||||
|
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/yay
|
rm -rf "/tmp/dotfiles"
|
||||||
|
|
||||||
|
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."
|
||||||
Loading…
x
Reference in New Issue
Block a user