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
|
2022-11-25 16:42:32 +00:00
|
|
|
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
|
2022-11-25 16:42:32 +00:00
|
|
|
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-25 16:49:34 +00:00
|
|
|
cd .local/share/chezmoi/
|
|
|
|
git remote set-url origin git@inex.dev:v/dotfiles.git
|
|
|
|
cd $HOME
|
2022-11-24 16:51:15 +00:00
|
|
|
|
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
|
2022-11-25 16:42:32 +00:00
|
|
|
|
|
|
|
sudo usermod -aG wheel,input,audio,video,lp v
|