dotfiles-ansible/additional/packages.yml

119 lines
3.5 KiB
YAML

---
# 'ansible', 'doas' and 1 ssh client are probably already installed
- name: Install packages
hosts: all
gather_facts: yes
tasks:
- block:
- name: Update the system beforehand
tags: update
apk:
available: yes
upgrade: yes
update_cache: yes
# Install both mesa-dri-gallium and mesa-dri-classic here so that it
# works on all machines. Also add both vdpau and vaapi stuff
- name: Install system dependencies
apk:
name: >
build-base, rsync, cargo, py3-virtualenv, py3-setuptools, dunst,
alacritty, foot, nushell, bash, amfora, bat, fd, ripgrep,
gpg, mpdris2, mpc, mpd, mpv, ncmpcpp, emacs-x11, neovim,
newsboat, pipewire, pipewire-pulse, wireplumber,
sway, river, swaylock, swayidle, waybar, wlr-randr, grim,
slurp, wl-clipboard, wofi, docs, xdg-desktop-portal-wlr, go, curl,
xdg-desktop-portal-gtk, yt-dlp, vifm, zathura-pdf-mupdf, lang,
brillo, atool, hugo, stylua, starship, podman, buildah, udisks2,
mesa-dri-classic, mesa-dri-gallium
state: present
tags: system
become: yes
- block:
- name: Install cliphist
tags: cliphist
command:
cmd: go install go.senan.xyz/cliphist@latest
# Avoid fzf.vim from distro repo
- name: Install fzf
tags: fzf
command:
cmd: go install github.com/junegunn/fzf@latest
- name: Install glow
tags: glow
command:
cmd: go install github.com/charmbracelet/glow@latest
- name: Install koneko
tags: koneko
command:
cmd: go install github.com/irevenko/koneko@latest
- name: Install what-anime-cli
tags: what-anime-cli
command:
cmd: go install github.com/irevenko/what-anime-cli@latest
- name: Install vim-startuptime
tags: [ never, vim ]
command:
cmd: go install github.com/rhysd/vim-startuptime@latest
- name: Clean go modcache
command:
cmd: go clean -modcache
tags: go
environment:
GOPATH: '{{ ansible_env.HOME }}/.local/share/go'
GOPROXY: direct
- block:
- name: Install selene
tags: selene
command:
cmd: cargo install --locked --force selene
- name: Install texlab
tags: texlab
command:
cmd: cargo install --git https://github.com/latex-lsp/texlab.git --locked
tags: rust
environment:
CARGO_HOME: '{{ ansible_env.HOME }}/.local/share/cargo'
- block:
- name: Install pyenv
tags: pyenv
environment:
PYENV_ROOT: '{{ ansible_env.HOME }}/.local/share/pyenv'
import_tasks: tasks/pyenv.yml
- name: Install poetry
tags: poetry
import_tasks: tasks/poetry.yml
tags: [ never, python ]
- name: Install vagrant
tags: vagrant
vars:
- vagrant_dir: ~/Code/vagrant
- vagrant_libvirt_dir: ~/Code/vagrant-libvirt
import_tasks: tasks/vagrant.yml
- block:
- name: Install Anime4KCPP
tags: anime4kcpp
vars:
- anime4kcpp_dir: ~/Code/Anime4KCPP
import_tasks: tasks/anime4kcpp.yml
- name: Install tt
tags: tt
vars:
- tt_dir: ~/Code/tt
import_tasks: tasks/tt.yml
tags: custom