cleanup bootstrap/split out desktop

This commit is contained in:
Amarpreet Minhas 2024-12-18 20:21:36 -05:00
parent 6a8a7f8baa
commit a6dcb43c60
2 changed files with 42 additions and 21 deletions

View file

@ -1,50 +1,56 @@
#!/bin/bash #!/bin/bash
GO_VERSION=1.23
NVIM_VERSION=0.10.2
NERDFONTS_VERSION=3.3.0
SOPS_VERSION=3.9.2
# install packages # install packages
sudo apt install \ sudo apt install \
age \
apt-transport-https \ apt-transport-https \
curl \ curl \
fd-find \ fd-find \
firefox \
fontconfig \ fontconfig \
golang-1.22 \ golang-${GO_VERSION} \
gpg \ gpg \
htop \ htop \
imv \
inxi \ inxi \
jq \ jq \
kitty \ kitty \
luarocks \ luarocks \
mpv \
ncdu \ ncdu \
neovim \
pipewire-alsa \
pipewire-audio \
pipewire-pulse sudo \
python3-neovim \ python3-neovim \
python3-pynvim \ python3-pynvim \
ripgrep \ ripgrep \
sway \
swaylock \
tmux \ tmux \
unzip \ unzip \
waybar \
wget \ wget \
wireplumber \
wl-clipboard \
yq yq
# install golang to path
sudo update-alternatives --install /usr/bin/go go /usr/lib/go-${GO_VERSION}/bin/go 100 \
--slave /usr/bin/gofmt gofmt /usr/lib/go-${GO_VERSION}/bin/gofmt 100
# set up nerd fonts # set up nerd fonts
FONT_DIR=${HOME}/.local/share/fonts/ FONT_DIR=${HOME}/.local/share/fonts/
mkdir -p ${FONT_DIR} mkdir -p ${FONT_DIR}
wget -qO- https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/DejaVuSansMono.tar.xz | tar -Jxv -C ${FONT_DIR} wget -qO- https://github.com/ryanoasis/nerd-fonts/releases/download/v${NERDFONTS_VERSION}/DejaVuSansMono.tar.xz | tar -Jxv -C ${FONT_DIR}
fc-cache -fv fc-cache -fv
# install lazygit # install neovim
/usr/lib/go-1.23/bin/go install github.com/jesseduffield/lazygit@latest curl -LO https://github.com/neovim/neovim/releases/download/v${NVIM_VERSION}/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz
rm nvim-linux64.tar.gz
# setup moolticute # install neovim to path
echo 'deb http://download.opensuse.org/repositories/home:/fawz:/mooltipass/Debian_Testing/ /' | sudo tee /etc/apt/sources.list.d/home:fawz:mooltipass.list sudo update-alternatives --install /usr/bin/nvim nvim /opt/nvim-linux64/bin/nvim 100
curl -fsSL https://download.opensuse.org/repositories/home:fawz:mooltipass/Debian_Testing/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_fawz_mooltipass.gpg >/dev/null sudo update-alternatives --install /usr/bin/vim vim /opt/nvim-linux64/bin/nvim 100
sudo apt update
sudo apt install qtwayland5 moolticute # install lazygit
go install github.com/jesseduffield/lazygit@latest
# install sops
wget https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops_${SOPS_VERSION}_amd64.deb
sudo apt install ./sops_${SOPS_VERSION}_amd64.deb
rm ./sops_${SOPS_VERSION}_amd64.deb

15
desktop.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
# install packages
sudo apt install \
firefox \
imv \
mpv \
pipewire-alsa \
pipewire-audio \
pipewire-pulse sudo \
sway \
swaylock \
waybar \
wireplumber \
wl-clipboard