dotfiles/dot_scripts/executable_install_base.sh

36 lines
1.1 KiB
Bash
Raw Normal View History

2022-11-24 16:04:55 +00:00
#!/bin/sh
2022-11-24 16:11:50 +00:00
# Never ever curl some remote shit straight to shell, like:
# curl --proto '=https' --tlsv1.2 -sSf https://inex.dev/v/dotfiles/raw/branch/main/install_base.sh | sh
# - Seriously, don't do this, it's insecure!
2022-11-24 16:04:55 +00:00
# Pacman packages
sudo pacman --needed --noconfirm -Syu base-devel htop ranger git screen ncdu neovim pipewire sway swaybg xorg-server xorg-xwayland chezmoi foot polkit openssh firefox-developer-edition
2022-11-24 16:04:55 +00:00
# Install Paru
if pacman -Qs paru > /dev/null ; then
echo "'Paru' already installed."
else
git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin/
makepkg --needed --noconfirm -si
cd ..
rm -rf paru-bin/
fi
# AUR Packages
paru --needed --noconfirm -Syu paru-bin ttf-cascadia-code
2022-11-24 16:51:15 +00:00
# Chezmoi apply dotfiles
chezmoi init --apply https://inex.dev/v/dotfiles.git
2022-11-24 17:17:39 +00:00
if [ -f "$HOME/.ssh/id_ed25519.pub" ]; then
echo "id_ed25519.pub exist"
else
echo "creating id_ed25519.pub..."
2022-11-24 17:20:28 +00:00
ssh-keygen -t ed25519 -f "$HOME/.ssh/id_ed25519" -N ""
2022-11-24 17:17:39 +00:00
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
fi
sudo usermod -aG wheel,input,audio,video,lp v